Latest web development tutorials

jQuery [attribute = value] Selector

seletor jQuery seletor jQuery

Exemplos

Selecione o valor do atributo id de "escolha" para cada elemento:

$("[id=choose]")

tente »

Definição e Uso

[Attribute = value] para selecionar cada elemento com os atributos e valores especificados.


gramática

$("[attribute=value]")

参数 描述
attribute 必需。规定要查找的属性。
value 必需。规定要查找的值。


seletor jQuery seletor jQuery