jQuery [attribute=value] Selector
Example
Select every element containing an id attribute with the value "choose":
$("[id=choose]")
Try it Yourself »
Definition and Usage
The [attribute=value] selector selects each element with the specified attribute and value.
Syntax
$("[attribute=value]")
| Parameter | Description |
|---|---|
| attribute | Required. Specifies the attribute to find |
| value | Required. Specifies the value to find |