85
rated 0 times
[
92]
[
7]
/ answers: 1 / hits: 62663
/ 12 Years ago, thu, april 26, 2012, 12:00:00
In the below code objTo
is a div to which i need to insert multiple number of div.
when i use the code for the first time its working.but on the next time its overwriting the existing code.
<script>
var divtest= document.createElement(div);
divtest.innerHTML = <div>new div</div>
objTo.appendChild(divtest)
</script>
Where am i going wrong?
More From » appendchild