Dynamic addition and removal of textboxes

How to dynamically add and remove textboxes with unique ids on click of add and remove buttons respectively

The way I solved this issue was by using the “display” tag and setting the textbox to “hidden” or “block”(visible). You would preset your widths and your start positions for your “display” in each textbox…one would be set to “block,” while the others are “hidden.”

I then wrote an setSearchStyle function that loops through all the textbox ids and depending on which button, is selected I set the display accordingly.

Hi jananiav94

Would it be something like this?

https://jsfiddle.net/wagnermarques/gf7346z0/35/