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