I'm creating a new input field with javascript, however i'd like to put it on a specific place, like below a similar field. Is there a way to do this?
my code is:
var input = document.createElement("input");
input.setAttribute("type", "file");
input.setAttribute("name", "img"+img);
input.setAttribute("id", "img"+img);
input.setAttribute("value", "");
input.setAttribute("style", "font-size:10px");
input.setAttribute("size", "50");
document.getElementById("form1").appendChild(input);