jQuery [attribute$=value] Selector
Example
Select all elements with an href attribute that ends with ".org" element:
$("a[href$='.org']")
Try it »
Definition and Usage
The [attribute$=value] selector selects every element with the specified attribute whose value ends with the specified string.
Syntax
$("[
attribute
$=
'value'
]")
| Parameters | Description |
|---|---|
| attribute | Required. Specifies the attribute to look for. |
| value | Required. Specifies the string with which the attribute value must end. |
jQuery selector