开发者

jquery select problem

How to find a <input开发者_如何学运维> whose type is text and value is "no"?


You can use multiple attribute selectors:

$("input[type='text'][value='no']")

More info:

  • Selectors/attributeMultiple

Or use filter:

$("input:text").filter(function () {
  return this.value == "no";
});


$('input:text[value=no]')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜