jQuery [attribute] 屬性選擇器

jQuer 選擇器

[ attribute ]選擇器用于選擇具有指定屬性的[attribute]元素。

語法:

$("[attribute]")

實例

選擇具有target屬性的每個元素:

$(document).ready(function(){
  $("[target]").css({"background":"green", "color":"white"});
});
測試看看?/?

參數(shù)值

參數(shù)描述
attribute指定要選擇的元素的屬性

jQuer 選擇器

丰满人妻一级特黄a大片,午夜无码免费福利一级,欧美亚洲精品在线,国产婷婷成人久久Av免费高清