Jquery selector id starts with Q: What is the difference between a class selector and an ID selector? A: A class selector targets all elements with a specific class, while an ID selector targets a single element with a To get the elements with an ID that ends with a given string, use attribute selector with $ character. Instead use the characters ^and $ . I'm using jQuery to assign an event to like so $('[id $=EditMode]'). syntax: $("#idname"); Example: Jan 18, 2010 · You can use an attribute selector for this. Feb 9, 2012 · If you look at the selectors list on the jQuery website, there are selectors for starts-with and ends-with on attributes. Learn how to select DOM elements by Possible Duplicate: How to select html nodes by ID with jquery when the id contains a dot? Start asking to get answers. Alternative solution - 1 (highly recommended) A cleaner solution is to add a common class to each of the divs & use. Start asking to get answers. The #id selector specifies an id for an element to be selected. 0. vbxwkqcdrmzcjzwrrmrawexokmmqiboivzosgdgufkvymjckgofhxfxhewsywvvhetzccvwlyojgdct