npd1164
Dec 7th 2007, 5:42 am
What's the proper syntax to make this work:
document.myForm.myField.value = newValue;
(Where red portions are variables)
I thought it should be something like:
document.(eval(myForm)).eval(myField).value = newValue;
...but it's not working and cannot seem to find a reference for the proper way to write it. Thanks for any input
document.myForm.myField.value = newValue;
(Where red portions are variables)
I thought it should be something like:
document.(eval(myForm)).eval(myField).value = newValue;
...but it's not working and cannot seem to find a reference for the proper way to write it. Thanks for any input