jQuery [attribute=value] Selector

Example

Select each element with id="choose":

$("[id=choose]")

Try It Yourself

Definition and Usage

[attribute=value] selector selects each element with the specified attribute and value.

Syntax

$("[attribute=value]")
Parameters Description
attribute Required. Specifies the attribute to be found.
value Required. Specifies the value to be found.