THE WORLD'S LARGEST WEB DEVELOPER SITE

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


COLOR PICKER

colorpicker

SHARE THIS PAGE






Search w3schools.com:

Translate w3schools.com: