jQuery: select all elements of a given class, except for a particular Id
Solution 1:
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();
Solution 2:
Or take the .not() method
https://api.jquery.com/not/
$(".thisClass").not("#thisId").doAction();