[Solved] How to generate 15 inputs with loop for and run just once? [closed]


Is that what are you looking for?

for(var i=0 ; i<15;i++)
{
     var input = document.createElement('input');
     input .setAttribute('id',"input"+i);
     document.getElementById("formName").appendChild(input);
}

3

solved How to generate 15 inputs with loop for and run just once? [closed]