given a js function with an argument n ie:
myfunction(n)
Is there a way I can use n to refer to a form variable called item_1?
For example, in my function, I want to assign a value to a variable:
document.myform.myinput_1.value = "hello";
I really want the _1 above to be determined by n. That is if 2 is passed, I want:
document.myform.myinput_2.value = "hello";
Thanks for any help!
Gilles