concat array in element
Hi. I’m fairly new to javascript. I have a code where I’m trying to generate scrollx1 through scrollx100. I can get the array to work with doc.write and I can get one concat variable to work in the element but when I combine them it doesn’t work. Any suggestions as to what I need to add to this code:
var sp=1;
for (sp=1;sp<=100;sp++)
{
var sx = "scrollx";
var sy = "scrolly";
var thissx = sx + sp;
var thissy = sy + sp;
theForm[thissx].value = scrollx;
theForm[thissy].value = scrolly;
}
Any help would be much appreciated!!
View full post on Webmaster-Talk.com
array, concat, Element