jQuery NOT Selector

4/13/2015 8:37:58 PM

To select all elements that match a first pattern and exclude from that list elements the match a second pattern, you can use the jQuery "not" selector. In the following, we will select all textarea and then exclude all textarea that have a class of ignore_me.

$("textarea").not(".ignore_me").fadeOut();