S
Stefan Mueller
To change the value of input boxes I use
document.MyForm.MyInput1.value = "Test";
document.MyForm.MyInput2.value = "Test";
Is it also possible to use a variable instead of MyInput1 and MyInput2?
I'm thinking about something like
var MyVariable = "MyInput1";
document.MyForm.MyVariable.value = "Test";
Stefan
document.MyForm.MyInput1.value = "Test";
document.MyForm.MyInput2.value = "Test";
Is it also possible to use a variable instead of MyInput1 and MyInput2?
I'm thinking about something like
var MyVariable = "MyInput1";
document.MyForm.MyVariable.value = "Test";
Stefan