English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
[ attribute Selector is used to select elements with specifiedThe [attribute] of the attributeElement.
$("[attribute]")
Select each element with the target attribute:
$("document").ready(function(){ $("[target]").css({"background":"green", "color":"white"}); });Test and See‹/›
Parameter | Description |
---|---|
attribute | Specify the attributes of the elements to be selected |