0

Hey Guys! How do you create Inputs based on the User by using prompt?

Thanks Guys!

29th Jun 2017, 11:24 AM
Teddy Pascual
Teddy Pascual - avatar
5 Answers
+ 13
onload = function() { var inp = prompt("Number of inputs"); while (inp--) { document.body.appendChild(document.createElement("input")); } }; //Your question is not clear... ~_~
29th Jun 2017, 11:33 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 11
var inp = prompt("Input");
29th Jun 2017, 11:27 AM
Valen.H. ~
Valen.H. ~ - avatar
+ 1
I'm Very sorry haha Thanks a lot! :)
29th Jun 2017, 11:34 AM
Teddy Pascual
Teddy Pascual - avatar
0
I mean like creating Input/<input> based on the users and to generate and create it?
29th Jun 2017, 11:30 AM
Teddy Pascual
Teddy Pascual - avatar
0
How can you arrange that into an Array?
9th Jul 2017, 2:08 AM
Teddy Pascual
Teddy Pascual - avatar