Latest web development tutorials

jQueryの[属性]セレクタ

jQueryのセレクタ jQueryのセレクタ

id属性を持つ各要素を選択します。

$("[id]")

»をお試しください

定義と使用法

[属性]セレクタは、指定された属性を持つ各要素を選択します。


文法

$("[attribute]")

参数 描述
attribute 必需。规定要查找的属性。


jQueryのセレクタ jQueryのセレクタ