April 10th, 2000, 07:52 AM
Join Date: Dec 1999
Time spent in forums: < 1 sec
Reputation Power: 15
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by Thermidor:
The following line does what I want it to. Namely, it puts the value of newval into the field specified.
document.forms.Ship1.value = newval;
However, I need to do this dynamically.
I have been trying (to no avail) things like this:
document.forms.Ship + var1 + [ + var2 + ].value = newval;
Any advice/suggestions about how to go about this would be greatly appreciated.
Try it with eval("document.forms.Ship" + var1 + "[" + var2 + "]" + ".value = newval");
[This message has been edited by PAV (edited April 10, 2000).]