<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>
<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