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]')
精彩评论