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();
More Related Contents:
- How can I get the ID of an element using jQuery?
- Select element by exact match of its content
- jquery data selector
- Sort divs in jQuery based on attribute ‘data-sort’?
- How can I change CSS display none or block property using jQuery?
- Set selected option of select box
- Get a list of checked checkboxes in a div using jQuery
- How do I access style properties of pseudo-elements with jQuery? [duplicate]
- jQuery dot in ID selector? [duplicate]
- What is the fastest method for selecting descendant elements in jQuery?
- jQuery :contains() selector uppercase and lower case issue
- fullcalendar multiple cell select on mobile device?
- jQuery Set Select Index
- How can I exclude $(this) from a jQuery selector?
- Using jquery to get all checked checkboxes with a certain class name
- Multiple selector chaining in jQuery?
- jQuery : eq() vs get()
- jQuery selector for the label of a checkbox
- jQuery select by attribute using AND and OR operators
- Target elements by class prefix
- Difference between CSS selector and jQuery filter?
- jQuery hasClass() – check for more than one class
- Changing the child element’s CSS when the parent is hovered
- How to select elements which do not have a specific child element with JQuery
- How to detect if a browser is Chrome using jQuery?
- jQuery mobile- For every live tap event should there be an equivalent click event?
- Performance of jQuery selector with context
- jquery select siblings ‘until’
- How to select a table column with jQuery
- How to use multiple jquery object variables as selectors?