Селектор :not()


not selector

Описание: Selects all elements that do not match the given selector.

  • Добавлен в версии: 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 complex selectors or variables into a :not() selector filter. In most cases, it is a better choice.