jQuery [attribute$=value] Selector
Example
Select all elements with the id attribute and whose attribute value ends with "header":
$("[id$=header]")
Definition and Usage
[attribute$=value] Selector selects each element that has the specified attribute and ends with the specified string.
Syntax
$("[attribute$=string]")
Parameter | Description |
---|---|
attribute | Required. Specifies the attribute to be searched for. |
string | Required. Specifies a string that ends with the attribute value. |