THE WORLD'S LARGEST WEB DEVELOPER SITE
HTMLCSSJAVASCRIPTSQLPHPBOOTSTRAPJQUERYANGULARXML
 

jQuery [attribute=value] Selector

jQuery Selectors jQuery Selectors

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

jQuery Selectors jQuery Selectors