A
Andy Reed
In my form I have a form value named v6.
I can refer to this value in a javascript as
mainform.v6.value
I can send out an alert {alert(mainform.v6.value);}
Fine.
Is there a way of referring to this value using a
javascript variable as below :-
var xx = 6;
var yy = "mainform.v" + xx + ".value";
{alert(yy);}
This doesn't work but you can see what I want to do.
I can refer to this value in a javascript as
mainform.v6.value
I can send out an alert {alert(mainform.v6.value);}
Fine.
Is there a way of referring to this value using a
javascript variable as below :-
var xx = 6;
var yy = "mainform.v" + xx + ".value";
{alert(yy);}
This doesn't work but you can see what I want to do.