jQuery [attribute$=value] Seletor

❮ Seletores jQuery

Exemplo

Selecione todos os elementos <a> com um atributo href que termine com ".org":

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

Definição e uso

O seletor [attribute$=value] seleciona cada elemento com um atributo específico, com um valor que termina em uma string específica.


Sintaxe

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

Parameter Description
attribute Required. Specifies the attribute to find
value Required. Specifies the string the value should end with

❮ Seletores jQuery