Hi,
I have a form on an html page. The first field in the page asks the
user a enter the number.
What I want to do then is to present the user with a number of fields
based on the number entered. So if the user enters '5' I want to
present him/her with 5 text boxes.
I can do this on another page by grabbing the number from the field
and looping through until I hit n. However, I'd really like to write
the fields onto the same page as the number field using onchange().
I've tried document.write( ) but that writes the content to a new page.
I don't think that I can 'hide' the fields through the style because I
don't want to impose a limit to the number of fields allowed.
I'd be grateful for any suggestions for writing the content to the
same page. Maybe using frames?
Thanks in advance.
Regards
Emmett
I have a form on an html page. The first field in the page asks the
user a enter the number.
What I want to do then is to present the user with a number of fields
based on the number entered. So if the user enters '5' I want to
present him/her with 5 text boxes.
I can do this on another page by grabbing the number from the field
and looping through until I hit n. However, I'd really like to write
the fields onto the same page as the number field using onchange().
I've tried document.write( ) but that writes the content to a new page.
I don't think that I can 'hide' the fields through the style because I
don't want to impose a limit to the number of fields allowed.
I'd be grateful for any suggestions for writing the content to the
same page. Maybe using frames?
Thanks in advance.
Regards
Emmett
Comment