Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using jQuery, how to select all elements where element id ends with some string?

Tags:

jquery

Using jQuery, how to select all elements where id attribute ends with some string?

like image 795
Babiker Avatar asked Dec 03 '10 00:12

Babiker


1 Answers

There an attribute-ends-with selector ([attr$=value]), like this:

$("[id$=something]")
like image 55
Nick Craver Avatar answered Nov 03 '22 20:11

Nick Craver