I have a bunch of elements on my site (dynamically created). E.g:
<input type="text" class="form-control" id="item5" name="item5">
<input type="text" class="form-control" id="item2" name="item2">
...
I do not know how many Items there are. I only know that the ID-Name is always "itemX" (X stand for a number that I don't know.)
On Button Click I want loop through the site and that it writes alle founded ID that begins wit "item..." in a text input. (hidden field)
Any Ideas, how I can do this?