jquery for each all elements having similar id
Give them a class, so you can select them by the class?
$('.class').each(function(i,e) { // });
You can use ^
selector.
Example
$('div[id^="ID"]')
^=
select DOM whose ID
attribute starts with ID
(i.e ID1, IDID,IDS,ID2 etc)
$('element[id^="ID"]').each(function () {
console.log(this.value);
});
Where element is the name of your targeted html element.