delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

Note: I am creating 5 dynamic divs and I want them all to be within the parentnode so they inherit the style?
Many Thanks


Is there a way to position a dynamically created <div> inside a specific parentNode?
For example, if in my html code I have
<div id="test"></div>
When I create my dynamic <div>, can I created it to be within the above div? Or must it always be appended to the end?
Note: I am creating 5 dynamic divs and I want them all to be within the parentnode so they inherit the style?
Many Thanks

TOP

I figured it out.  Here's to whom it may help.....
I would use this line of code to append to an existing <div>
document.getElementById("existingDiv").appendChild(newDiv);



Note: I am creating 5 dynamic divs and I want them all to be within the parentnode so they inherit the style?
Many Thanks

TOP

Back Forum