Latest web development tutorials

jQuery [atribut $ = value] Selector

pemilih jQuery pemilih jQuery

contoh

Untuk memilih semua dengan ".org" pada akhir elemen atribut href <a>:

$("a[href$='.org']")

Coba »

Definisi dan Penggunaan

[Atribut $ = value] pemilih untuk memilih masing-masing dan berakhir dengan tali serut yang ditentukan dengan atribut yang ditetapkan.


tatabahasa

$("[attribute$='value']")

参数 描述
attribute 必需。规定要查找的属性。
value 必需。规定属性值以其结尾的字符串。


pemilih jQuery pemilih jQuery