user198729
user198729

Reputation: 63626

jquery select problem

How to find a <input> whose type is text and value is "no"?

Upvotes: 0

Views: 116

Answers (2)

Christian C. Salvad&#243;
Christian C. Salvad&#243;

Reputation: 827198

You can use multiple attribute selectors:

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

More info:

Or use filter:

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

Upvotes: 4

Scott Evernden
Scott Evernden

Reputation: 39940

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

Upvotes: 0

Related Questions