Latest web development tutorials

jQuery [attribute! = value] Selector

jQuery selector jQuery selector

Examples

Select all the class attribute value is not "intro" the <p> element:

$("p[class!='intro']")

try it"

Definition and Usage

[attribute! = value] selector to select each element without specified attributes and values.

With specified properties, but not with the specified element value will be selected.


grammar

$("[attribute!='value']")

参数 描述
attribute 必需。规定要查找的属性。
value 必需。规定要查找的值。


jQuery selector jQuery selector