jQuery: select all elements of a given class, except for a particular Id
Posted
by Ankur
on Stack Overflow
See other posts from Stack Overflow
or by Ankur
Published on 2010-03-31T07:43:54Z
Indexed on
2010/04/25
0:43 UTC
Read the original article
Hit count: 535
jQuery
|jquery-selectors
This is probably pretty simple.
I want to select all elements of a given class "thisClass", except where the id is of a given id "thisId".
i.e. something equivalent to (where -/minus implies remove):
$(".thisClass"-"#thisId").doAction();
© Stack Overflow or respective owner