Let's say I have a number of select fields. The quantity of those select fields is not fixed. They will be genereated by the user. BUT they will have an incremented ID like this:
<select id="select1"></select>
<select id="select2"></select>
<select id="select3"></select>
What I need is for a JavaSript to pull the values from those selects based on their ID, assuming I have the CURRENT count of the selects in another variable.
So I'm looking for somehting to make this work like:
for (var i =1; i<currentcount; i++){
var resultvar = select(//now I have to add the var i in here but don't know how).value;
alert(resultvar);
}