Dynamically creating a specific number of input form elements
You could use an onclick event handler in order to get the input value for the text field. Make sure you give the field an unique id attribute so you can refer to it safely through document.getElementById(): If you want to dynamically add elements, you should have a container where to place them. For instance, … Read more