开发者

jquery select problem

开发者 https://www.devze.com 2022-12-13 17:04 出处:网络
How to find a <input开发者_如何学运维> whose type is text and value is \"no\"?You can use multiple attribute selectors:

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

精彩评论

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