jQuery [attribute] セレクタ

❮ jQuery Selectors

id 属性を持つ全ての要素を選択する:

$("[id]")
Try it Yourself »

定義と用法

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


構文

$("[attribute]")

パラメータ 説明
attribute 必須。検索する属性を指定する

❮ jQuery Selectors