<img src='plus.jpg' width='80' height='80' onclick="myFunction2()">
return
function myFunction2() {
var x = document.createElement("INPUT");
x.setAttribute("name", "image[]");
x.setAttribute("type", "file");
document.getElementById("add").appendChild(x);
}
I would like to use myFunction2() just 4 times. After that, I want to stop this function. Can you give me any suggestion? Thanks in advance.