Easy Tutorial
❮ Traversing Parents Jquery Plugin Password Validation ❯

jQuery :not() Selector

jQuery Selectors

Example

Select all <p> elements except those with class="intro":


Definition and Usage

The :not() selector selects all elements except the specified element.

The most common usage: Used in combination with other selectors to select all elements except the specified element in a specific group (as in the example above).


Syntax

Parameter Description
selector Required. Specifies the element to not select. <br>This parameter accepts any type of selector.

jQuery Selectors

❮ Traversing Parents Jquery Plugin Password Validation ❯