ExampleSelect every element containing an id attribute with the value "choose":
Try it yourself » |
The [attribute=value] selector selects each element with the specified attribute and value.
$("[attribute=value]") |
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the value to find |