jQuery [attribuut] Selector

❮ jQuery-kiezers

Voorbeeld

Selecteer elk element met een id-attribuut:

$("[id]")

Definitie en gebruik

De [attribuut] selector selecteert elk element met het gespecificeerde attribuut.


Syntaxis

$("[attribute]")

Parameter Description
attribute Required. Specifies the attribute to find

❮ jQuery-kiezers