jQuery [attribute*=value] Seletor
Exemplo
Selecione todos os elementos <input> com um atributo name que contenha a palavra "nation":
$("input[name*='nation']")
Definição e uso
O seletor [attribute*=value] seleciona cada elemento com um atributo específico, com um valor contendo uma string.
Sintaxe
$("[attribute*='value']")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to find |
value | Required. Specifies the string value |