[thelist] JS: referencing a variable form element

Tab Alleman Tab.Alleman at MetroGuide.com
Wed Jun 30 09:33:52 CDT 2004


Joe Crawford wrote:
> //I think your syntax here should be:
>        var ThisForm = document[TheFormName];
>        var QuantityField = ThisForm[TheFieldName];
>        var TestValue = QuantityField.value;
> 
> Try that. The thing is to have the strings evaluated as object names.

Right you are...thanks!


More information about the thelist mailing list