btcodeman
09-29-2003, 09:47 PM
Totally forgotten how to get round the following problem.
I am trying to insert a variable(value) into a forms.element command to allow me to check particular element by it's name. Code:-
var v_name = "aq1";
if (document.questions.elements[' + v_name + '][0].checked) {
The above just reads the command as v_name not the content, any help appreciated.
Thanks
I am trying to insert a variable(value) into a forms.element command to allow me to check particular element by it's name. Code:-
var v_name = "aq1";
if (document.questions.elements[' + v_name + '][0].checked) {
The above just reads the command as v_name not the content, any help appreciated.
Thanks