LogixMaster
LogixMaster

Reputation: 586

Using Selectors in JS

I know you can do something like input:not([type=text]) etc ..

I want to get all input fields of type text except one with an id = 'x'.

Is it possible with selectors?

Upvotes: 0

Views: 56

Answers (1)

j08691
j08691

Reputation: 207861

Sure, try $('input[type="text"]:not("#x")')

jsFiddle example

Upvotes: 2

Related Questions