How to Clone Textbox without its content

Click the Clone it button to clone the textbox. It will clone the textbox (the first one) and create many other textboxes from it, with its contents.

The cloned textboxes will be empty.




All the cloned textboxes are unique. Each having a unique id. Enter values in each textbox and click the "submit" button. It will also create a submit button, dynamically.

However, you can clone a DIV element with its contents also. Check this out.

Go back to the Tutorial
More interesting and interactive Demos