:not() selector

:not() Selector

not selector

Description: Selects all elements that do not match the given selector.

  • version added: 1.0jQuery( ":not(selector)" )

    selector: A selector with which to filter by.

All selectors are accepted inside :not(), for example: :not(div a) and :not(div,a).

Additional Notes

The .not() method will end up providing you with more readable selections than pushing co