jQuery [atributo] seletor

❮ Seletores jQuery

Exemplo

Selecione cada elemento com um atributo id:

$("[id]")

Definição e uso

O seletor [attribute] seleciona cada elemento com o atributo especificado.


Sintaxe

$("[attribute]")

Parameter Description
attribute Required. Specifies the attribute to find

❮ Seletores jQuery