FAR too often I have seen people who are new to jQuery make the same irritating mistake, which I want to address once and for all. jQuery has an .is() method, which checks to see if at least one element in the current jQuery selection matches a selector, and returns a boolean reflecting this fact. [...]
The opposite of jQuery’s .is() method is not .not(), it is !.is()