Hello,
I can refer to a form element called value using
f.B1.value (where B1 is the name of the input)
but need to put this into the more general form to cover
f.B2.value, f.B3.value etc
I wrote
var name='B'+test_n um;alert(f.name .value);
and this doesn't work.
Also tried
var name='B'+test_n um;alert('f.' + name + '.value');
but this just gives 'f.' + name + '.value' and not the actual value.
How do I do this?!
Cheers
Geoff
I can refer to a form element called value using
f.B1.value (where B1 is the name of the input)
but need to put this into the more general form to cover
f.B2.value, f.B3.value etc
I wrote
var name='B'+test_n um;alert(f.name .value);
and this doesn't work.
Also tried
var name='B'+test_n um;alert('f.' + name + '.value');
but this just gives 'f.' + name + '.value' and not the actual value.
How do I do this?!
Cheers
Geoff
Comment