[Javascript] Add elements to form
Rees, Mark (TWIi London)
mrees at twii.net
Mon Aug 6 05:24:51 CDT 2001
Hello
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:
<td id="1">Hello</td><input type="hidden name="1" value="Hello">
This seems a bit cumbersome. I've tried
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.
So is it possible?
Thanks in advance
Mark Rees
HTML Programmer
TWI Interactive
ext. 7994
More information about the Javascript
mailing list