I'm javascript to loop through a large number of items and using
document.getElementById("flap" + i).innerHTML = flap(i)
to write to a large number (50 at a time) of DIVs on my page. Rather than filling my HTML page with a large number of DIVs which in most cases won't be used I would like to use:
HTML DOM createElement() Method ...... to create the 50 DIVs on the fly and only as many as I need.
Here is my sample HTML DIV which I need to create on the fly (so, I need to start at "0" and create up to "49":
<div style="clear:both"> <br> </div>
<div id="flapBox3">
<p id='whenFlap3' class= "mscFlapTime">    •   posted  <b >7 minutes ago</b></p>
<b id='flapSum3' class= "mscFlapSumBold">Summary</b>
<p id='flap3'class= "mscFlapText" >Lorem ipsum .. </p>
</div>
I'm not sure how to do this and sure could use some help! Thanks!!!