jQuery [attribute=value] Seletor

❮ Seletores jQuery

Exemplo

Selecione cada elemento contendo um atributo id com o valor "escolher":

$("[id=choose]")

Definição e uso

O seletor [attribute=value] seleciona cada elemento com o atributo e valor especificados.


Sintaxe

$("[attribute=value]")

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

❮ Seletores jQuery