This is probably pretty simple.
I want to select all elements of a given class thisClass
, except where the id is thisId
.
i.e. something equivalent to (where -/minus implies remove):
$(".thisClass"-"#thisId").doAction();
Use the :not selector.
$(".thisclass:not(#thisid)").doAction();
If you have multiple ids or selectors just use the comma delimiter, in addition:
(".thisclass:not(#thisid,#thatid)").doAction();