English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
[ attribute * = value ] Selector is used to select the elements that haveAttributeElements containing the specified substring.
$("[attribute*=(value])
Select all anchor elements with href attributes whose values contain "example":
$("document").ready(function(){ $("a[href*=(example]).css({"background":"green", "color":"white"}); });Test and see‹/›
Parameters | Description |
---|---|
attribute | Specify the attribute name to be selected |
value | Specify the string value to be selected |