Easy Tutorial
❮ Misc Jquery Readyexception Event Ready ❯

jQuery [attribute!=value] Selector

jQuery Selectors

Example

Select all <p> elements that do not have the class attribute value "intro":


Definition and Usage

The [attribute!=value] selector selects every element that does not have the specified attribute and value.

Elements with the specified attribute but without the specified value are also selected.


Syntax

Parameter Description
attribute Required. Specifies the attribute to look for.
value Required. Specifies the value to look for.

jQuery Selectors

❮ Misc Jquery Readyexception Event Ready ❯