Usuń JavaScript
var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);
Confused Chinchilla
var elem = document.getElementById("myDiv");
elem.parentNode.removeChild(elem);