There is a collection of similar elements with matching IDs
Below are two methods for selecting them using Jquery:
Select by ID + Regex (For example, How can I select an element by ID with jQuery using regex?)
Add a redundant class to all the elements and then select by class
See the demonstration here:
Which method do you think is preferable? Is using ID+Regex
more time-consuming?