I am looking for a method to change several text control object values by doing the following:
var Control = 'myText';
document.myForm.(Control).value = 'wow';
which doesn't work. The following does:
document.myForm.myText.value = 'wow';
but I need to change many controls within a loop. So I am looking for somthing like the first one -- but how dow I make it work?
var Control = 'myText';
document.myForm.(Control).value = 'wow';
which doesn't work. The following does:
document.myForm.myText.value = 'wow';
but I need to change many controls within a loop. So I am looking for somthing like the first one -- but how dow I make it work?