Wildcards in jQuery selectors

The Solution to Wildcards in jQuery selectors is


To get all the elements starting with "jander" you should use:

$("[id^=jander]")

To get those that end with "jander"

$("[id$=jander]")

See also the JQuery documentation

~ Answered on 2011-03-21 10:35:16


Most Viewed Questions: