jQuery [atrybut $=wartość] Selektor
Przykład
Wybierz wszystkie elementy <a> z atrybutem href kończącym się na „.org”:
$("a[href$='.org']")
Definicja i użycie
Selektor [atrybut$=wartość] wybiera każdy element z określonym atrybutem, którego wartość kończy się określonym ciągiem.
Składnia
$("[attribute$='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string the value should end with |