I am pretty sure this is easy to figure out, but I don't know javascript that good. I am trying to declare variables dynamically but what I have below does not work.
What I want to accomplish is the following.
var id1 = document.getElementById("sid").value;
var id2 = document.getElementById("sid").value;
var id3 = document.getElementById("sid").value;
This is what I have so are but its not working.
var jscounter
for (i=0;i<=jscounter;i++)
{
var "id" + i + = document.getElementById("sid").value;
}
The above does not work. Help.