[Javascript] Add elements to form

Peter-Paul Koch gassinaumasis at hotmail.com
Mon Aug 6 09:35:28 CDT 2001


>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




More information about the Javascript mailing list