English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
[ attribute $ = value 属性値を指定して選択する[valueで終わる要素。
$("[attribute$=value]")
href属性値が「.org」で終わる<a>要素を選択します:
$("document").ready(function(){ $("a[href$='.org']").css({"background":"green", "color":"white"}); });テストを見て‹/›
パラメータ | 説明 |
---|---|
attribute | 選択する属性名を指定 |
value | 指定値で終わる文字列 |