English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
[ attribute!=value Selector is used to select elements that do not have a specifiedattributeor has a specifiedattributebut does not have a specificValueElement.
$("[attribute!='value'])
Select each <a> element whose href attribute value is not equal to " / CSS3 /:
$ (document).ready(function() { $("a[href!='/CSS3/'].css({"background":"green", "color":"white"}); });Test and see‹/›
Parameters | Description |
---|---|
attribute | Specify the attribute name to be selected |
value | Specify the value to be selected |