Latest web development tutorials

jQuery [atributo $ = value] Selector

seletor jQuery seletor jQuery

Exemplos

Para selecionar todos com ".org" no final de elementos do atributo href <a>:

$("a[href$='.org']")

tente »

Definição e Uso

[Atributo $ = value] para selecionar todos e acabar com o elemento de string especificado com os atributos especificados.


gramática

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

参数 描述
attribute 必需。规定要查找的属性。
value 必需。规定属性值以其结尾的字符串。


seletor jQuery seletor jQuery