From http://stackoverflow.com/questions/5376431/wildcards-in-jquery-selectors
To get all the elements starting with "jander" you should use: $("[id^=jander]") To get those that end with "jander" $("[id$=jander]")