Selektor jQuery [atribut]
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 |