How to add infinite input fields (text, select, radio button etc) in html page file using JavaScript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
0

How to add infinite input fields (text, select, radio button etc) in html page file using JavaScript?

I want to add infinite input fields in my html page (i am using Laravel Framework) . I want to use add button to add input fields or remove button when i want to remove it from my page. Can anyone help me to do this using JavaScript?

1st Jul 2016, 9:28 PM
Bagas Wibowo
2 Respostas
0
well if u were to use a loop to add inputs and you wanted infinite, it would crash the website
1st Jul 2016, 10:17 PM
aiden
aiden - avatar
0
not looping.. only when i click a button or element, then the script add an input element, but without limitation number of input element i can add. I have found the solution. thanks for your reply anyway. :)
24th Sep 2017, 3:38 PM
Bagas Wibowo