jQuery [atributo$=valor] Selector

❮ Selectores de jQuery

Ejemplo

Seleccione todos los elementos <a> con un atributo href que termine en ".org":

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

Definición y uso

El selector [atributo$=valor] selecciona cada elemento con un atributo específico, con un valor que termina en una cadena específica.


Sintaxis

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

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

❮ Selectores de jQuery