jQuery [attribute$=value]Selectors
Examples
Select all <a> elements with an href attribute ending with ".org":
$("a[href$='.org']")
Try it Yourself »
Definition and Usage
The [attribute$=value] selector selects every element with a specified attribute that ends with a specified string.
Syntax
$("[attribute$='value']")
| Parameters | Description |
|---|---|
| attribute | Required. Specifies the attribute to find. |
| value | Required. Specifies the string that the attribute value must end with. |
Other Extensions
jQuery Selectors