Selektor jQuery [attribute*=value]

❮ Selektory jQuery

Příklad

Vyberte všechny prvky <input> s atributem name, který obsahuje slovo „národ“:

$("input[name*='nation']")

Definice a použití

Selektor [attribute*=value] vybere každý prvek se specifickým atributem s hodnotou obsahující řetězec.


Syntax

$("[attribute*='value']")

Parameter Description
attribute Required. Specifies the attribute to find
value Required. Specifies the string value

❮ Selektory jQuery