Latest web development tutorials

jQuery [attribute = value] Selector

jQuery selector jQuery selector

Examples

Select the id attribute value of "choose" to each element:

$("[id=choose]")

try it"

Definition and Usage

[Attribute = value] selector to select each element with the specified attributes and values.


grammar

$("[attribute=value]")

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


jQuery selector jQuery selector