JavaScript coding for a dynamic generated text box

Asked By 20 points N/A Posted on -
qa-featured

I need JavaScript coding for a dynamic generated text box that will dynamically generate textboxes according to user input in the text box, if he/she enters the value as 6 in a text box the coding should generate 6 text boxes.

SHARE
Answered By 30 points N/A #157431

JavaScript coding for a dynamic generated text box

qa-featured

 

Hello Morison,
 
If I've understood correctly, you need a JavaScript and HTML code that will duplicate text boxes depending on the value entered by a user.
 
I've attached a simple JavaScript code that should do the trick and a html code that will show a form on your web page. Just copy and paste the code into your index to the spot where you want the form to be shown.

Related Questions