[Javascript] Add elements to form

Rees, Mark (TWIi London) mrees at twii.net
Mon Aug 6 10:06:13 CDT 2001


Ah yes, that was just a (misleading) example. The syntax is actually
document.formname.R1C1.value='Hello';

Mark

-----Original Message-----
From: Peter-Paul Koch [mailto:gassinaumasis at hotmail.com]
Sent: 06 August 2001 15:35
To: javascript at LaTech.edu
Subject: Re: [Javascript] Add elements to form



>I'd like to add some elements to a form. I'm creating a dynamic table and I
>want to be able to save the data in it.
>  At the moment I'm posting a form with lots of hidden inputs, kind of like
>so:

>document.formname.1.value='Hello';
>
>Not surprisingly this doesn't work and I get  'document.formname.1 is null
>or not an object'. I haven't been able to find anything at
>developer.netscape.com, irt.org or anywhere else.

Form field names may not begin with a number.

pk

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
http://www.LaTech.edu/mailman/listinfo/javascript



More information about the Javascript mailing list