Selector jQuery [atributo=valor]

❮ Selectores de jQuery

Ejemplo

Seleccione cada elemento que contenga un atributo de identificación con el valor "elegir":

$("[id=choose]")

Definición y uso

El selector [atributo=valor] selecciona cada elemento con el atributo y el valor especificados.


Sintaxis

$("[attribute=value]")

Parameter Description
attribute Required. Specifies the attribute to find
value Required. Specifies the value to find

❮ Selectores de jQuery