yann89
08-12-2002, 01:39 PM
Hello everyone,
I've a question about adding elements to a form dynamically.
I've got a form in an HTML page.
I've got an input text (called 'number') in this form where i can enter a number.
I've got a table in this form with input texts.
What I would like to do is when the user enters a number in the 'number' text box, a number of input texts (according to number entered) are automatically created in the table above.
For example, if I enter 3, i need to create 3 input text boxes in the table.
Note that when I create the text boxes, i need to keep the old values entered in the text boxes.
How can i do that ?
Thanks for your answers
Yann
I've a question about adding elements to a form dynamically.
I've got a form in an HTML page.
I've got an input text (called 'number') in this form where i can enter a number.
I've got a table in this form with input texts.
What I would like to do is when the user enters a number in the 'number' text box, a number of input texts (according to number entered) are automatically created in the table above.
For example, if I enter 3, i need to create 3 input text boxes in the table.
Note that when I create the text boxes, i need to keep the old values entered in the text boxes.
How can i do that ?
Thanks for your answers
Yann