By default I have 5 textboxes. When a user clicks on a button, one textbox should be added.
How could I do this?
You can create a textbox using JavaScript in two simple steps: First, you need to use the createElement("input") method of the document object to create an <input> element. Then, you need to set the type attribute of the <input> element that you've created to "text" using the Element. setAttribute() method.
Intro. Like a standard textbox, a dynamic textbox is used to build Cards containing text. The difference is that with a standard textbox, the text in the box comes directly from the DataSet, and only one macro is available; this macro lets you dynamically reference the first value in your selected value column.
If you replace the innerHTML, the previously entered values will be cleared, to avoid that, you can append the input elements programmatically:
var input = document.createElement('input');
input.type = "text";
//...
container.appendChild(input);
Check this example.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With