I have a hard time figuring out how to use appendChild().
Basically, what I do now is:
But instead, I would like to do:Code:
myDiv.innerHTML += someHtml;
where myDiv is an element targeted with getElementById and someHtml, well, some html (paragraphs wrapped in a div).Code:
So far, I can't get appendChild() to work...
Anyone can give me some advice?