[thelist] Problem accessing for values with []

Anthony Baratta Anthony at Baratta.com
Thu Feb 10 17:05:56 CST 2005

At 02:53 PM 2/10/2005, Jonathan Dillon wrote:

>I'm on to my second odd problem!  I've got a javascript file that needs to
>make reference to the following form:
>alert('val: ' + document.main.form[journal].value);
>...reveals that this will not work.  How in the name of flying beans do I
>access that value?  I can't change the value (ancient enteprise system), so
>I'm kind of lost on this one.

Try this:

alert('val: ' + document.<formname>.<fieldname>.value)

More information about the thelist mailing list