Thursday 24 December 2015

<p id = "parkinglot"></p>
<script>
text = "";
for (i=0;i<=2;i++)
{
text = text + "<input type ='text' id='mytext-" + i + " '/>"
}
document.getElementById("parkinglot").innerHTML = text;
</script>

No comments:

Post a Comment