Selektor jQuery [atribut]

❮ Selektory jQuery

Příklad

Vyberte každý prvek s atributem id:

$("[id]")

Definice a použití

Selektor [attribute] vybere každý prvek se zadaným atributem.


Syntax

$("[attribute]")

Parameter Description
attribute Required. Specifies the attribute to find

❮ Selektory jQuery