jQuery [属性]セレクター
例
id属性を持つすべての要素を選択します。
$("[id]")
定義と使用法
[属性]セレクターは、指定された属性を持つ各要素を選択します。
構文
$("[attribute]")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
id属性を持つすべての要素を選択します。
$("[id]")
[属性]セレクターは、指定された属性を持つ各要素を選択します。
$("[attribute]")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |