Reputation: 586
I know you can do something like input:not([type=text]) etc ..
input:not([type=text])
I want to get all input fields of type text except one with an id = 'x'.
id = 'x'
Is it possible with selectors?
Upvotes: 0
Views: 56
Reputation: 207861
Sure, try $('input[type="text"]:not("#x")')
$('input[type="text"]:not("#x")')
jsFiddle example
Upvotes: 2