Hello,

I have a hard time figuring out how to use appendChild().

Basically, what I do now is:

Code:
myDiv.innerHTML += someHtml;
But instead, I would like to do:

Code:
myDiv.appendChild(someHtml);
where myDiv is an element targeted with getElementById and someHtml, well, some html (paragraphs wrapped in a div).

So far, I can't get appendChild() to work...

Anyone can give me some advice?