I have a webpage. There is a button called add. When this add button is clicked then 1 text box must be added. This should happen at client side only. I want to allow the user to add at most 10 text boxes.
How can I achieve it using javascript?
example:
- only 1 text box is displayed
- user click add >
- 2 text boxes displayed
- user clicks add >
I also wants to provide a button called "remove" by which the user can remove the extra text box
Can anyone provide me a javascript code for this??