jQuery [atribut$=nilai] Pemilih
Contoh
Pilih semua elemen <a> dengan atribut href yang diakhiri dengan ".org":
$("a[href$='.org']")
Definisi dan Penggunaan
Pemilih [attribute$=value] memilih setiap elemen dengan atribut tertentu, dengan nilai yang diakhiri dengan string tertentu.
Sintaksis
$("[attribute$='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string the value should end with |