Is there something special I have to do in order to get a statement like this to work:
//assuming that all newDiv's have been created (proven as it worked for one append child at a time
document.getElementsByTagName("body")[0].appendChild("newDiv1").appendChild("newDiv2").appendChild("newDiv3");
I'm sure there is a reason why this doesn't work - would someone please be able to explain why?
//assuming that all newDiv's have been created (proven as it worked for one append child at a time
document.getElementsByTagName("body")[0].appendChild("newDiv1").appendChild("newDiv2").appendChild("newDiv3");
I'm sure there is a reason why this doesn't work - would someone please be able to explain why?