jQuery [atrybut!=wartość] Selektor
Przykład
Zaznacz wszystkie <p> elementy NIE zawierające atrybutu klasy o wartości „intro”:
$("p[class!='intro']")
Definicja i użycie
Selektor [atrybut!=wartość] wybiera każdy element, który NIE ma określonego atrybutu i wartości.
Zostaną wybrane elementy z wybranym atrybutem, ale z inną wartością.
Składnia
$("[attribute!='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the value to find |