English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
[ attribute $ = value The selector is used to select elements with attribute values specified byvalueelements ending with the specified string.
$("[attribute$=value]")
Select each <a> element with href attribute value ending with " .org":
$("document").ready(function(){ $("a[href$='.org'].css({"background":"green", "color":"white"}); });Test and see‹/›
Parameter | Description |
---|---|
attribute | Specify the attribute name to be selected |
value | The specified value should end with the string |