jQuery [attribute * = value]セレクター
例
「nation」という単語を含むname属性を持つすべての<input>要素を選択します。
$("input[name*='nation']")
定義と使用法
[attribute * = value]セレクターは、文字列を含む値を使用して、特定の属性を持つ各要素を選択します。
構文
$("[attribute*='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string value |