jQuery [atrybut=wartość] Selektor
Przykład
Wybierz każdy element zawierający atrybut id o wartości „wybierz”:
$("[id=choose]")
Definicja i użycie
Selektor [atrybut=wartość] wybiera każdy element z określonym atrybutem i wartością.
Składnia
$("[attribute=value]")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the value to find |