Selecting elements that do not contain a certain ID using ExtJS

Posted by pmdarrow on Stack Overflow See other posts from Stack Overflow or by pmdarrow
Published on 2010-06-02T17:58:42Z Indexed on 2010/06/02 19:04 UTC
Read the original article Hit count: 187

Filed under:
|
|

I'm trying to select all the <input> elements of a form except ones with IDs containing the words foo or bar. How can I do this using ExtJS 2.3.0? I've tried the following:

Ext.query("select,input:not([id*=foo][id*=bar])", "SomeForm");`

... but it doesn't work. Excluding IDs with foo in them seems to work fine:

Ext.query("select,input:not([id*=foo])", "SomeForm")`

I'm just not sure how to add a second ID substring. Any Ideas?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about extjs