jQuery [attribute!=value] Selector
Example
Select elements that do not contain id="main_header" within the <body> tag:
$("body [id!=main_header]")
Definition and Usage
[attribute!=value] Selector selects each element that does not have the specified attribute and value.
Elements with specified attributes but without specified values will also be selected.
Syntax
$("[attribute!=value]
Parameters | Description |
---|---|
attribute | Required. Specifies the attribute to be searched for. |
value | Required. Specifies the value to be searched for. |