In JQuery how do you select all elements using regex.
I have this markup
How do I select all id's starting with td_
I think you need the attribute-contains-selector: [Attribute Contains Selector [name*="value"] – jQuery API](http://api.jquery.com/attribute-contains-selector/)
Wow thats easier than a regex solution. Thanks
If you want to ensure that it doesn't accidentally match with something in the middle of the name, you can use the attribute-starts-with selector instead:
It also makes things easier for you or others who come back to the code, because you can tell immediately what the code is expected to achieve.
Ooh, even better! Hadn't seen that one. jQuery is amazing (hope DS60 doesn't read this )