I\'m trying a very basic example of creating a div inside an already existing div.
div
It doesn\'t seem to be working when I use:
Your code works well you just mistyped this line of code:
document.getElementbyId('lc').appendChild(element);
change it with this: (The "B" should be capitalized.)
document.getElementById('lc').appendChild(element);
HERE IS MY EXAMPLE: