Loop through all IDs that begin with XXX

Viewed 10896

Would anyone know how to loop through all ID's that being with name_

So, for example, within the markup I may have 50 id's that all start with "name_", the full ID would be like name_2, name_55, name_25, etc.

I'd like to loop through all of these getting the number.

Not really sure where to begin....... thank you!

1 Answers
Related