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