How to dynamically alter number of text boxes in html form?
Posted on 2007-03-30
I have an html form for inputting information. Different users have dsifferent numbers of items to input. Each item goes into a separate text box. To make the page look clean, I don't want to just have the maximum number of text boxes. I want to have a drop down select at the top where users select the number of items they have to put in. Then that number of input text boxes appear ready for input.
I could do this thorugh cgi, ina Perl script, for example, but I think the re-appearing page will confuse users. I'd rather it just appear.
Looking for suggestions on how to do this.