I know so little about javascript that I can't even articlulate the question properly. So, instead here is what I am trying to do.
[CODE=javascript]
var i = document.myform .myselectfield. selectedIndex;
var sel = document.myform .myselectfield. options[i].text;
var i=0
while (i<=9)
{
eval("document. xform" + i + ".custom.value" ) = sel;
i=i+1
}[/CODE]
The problem is with line 6. I am trying to dynamically assign a value to a field in a series of forms named xform1, xfrom2....xform 9
[CODE=javascript]
var i = document.myform .myselectfield. selectedIndex;
var sel = document.myform .myselectfield. options[i].text;
var i=0
while (i<=9)
{
eval("document. xform" + i + ".custom.value" ) = sel;
i=i+1
}[/CODE]
The problem is with line 6. I am trying to dynamically assign a value to a field in a series of forms named xform1, xfrom2....xform 9
Comment