Forums

This topic is locked

referencing multiple form fields

Posted 20 Apr 2005 02:24:16
1
has voted
20 Apr 2005 02:24:16 Dave Blohm posted:
I have a dynamic asp page that generates a form with a varying number of text fields. I want to know if it is possible to reference the text fields numerically as in document.formname.textfield[n].value.

thanks in advance.

Doc
Rangewalk Digital Studios

Replies

Replied 20 Apr 2005 20:03:12
20 Apr 2005 20:03:12 Chris Charlton replied:
I know in JS you can fo that with multiple forms (<i>document.form[0]....</i>, and if I remember each form element is called <i>element</i>. So, I'd <u>assume</u> you could catch them with...

<pre id=code><font face=courier size=2 id=code>document.formname.element[#].value</font id=code></pre id=code>

~ ~ ~ ~ ~ ~ ~
Chris Charlton <i>- DMXzone Manager</i>
<font size=1>[ Studio MX/MX2004 | PHP/ASP | SQL | XHTML/CSS | XML | Actionscript | Web Accessibility | MX Extensibility ]</font id=size1>

Reply to this topic