Remove element from DOM
Remove element from DOM
var element = document.getElementById("veryCoolID");
if (element != null) {
element.parentNode.removeChild(element);
}
var element = document.getElementById("veryCoolID");
if (element != null) {
element.parentNode.removeChild(element);
}
Leave a comment