Skip to content

Latest commit

 

History

History
8 lines (7 loc) · 160 Bytes

remove-element-from-dom.md

File metadata and controls

8 lines (7 loc) · 160 Bytes

Remove element from DOM

var element = document.getElementById("veryCoolID");
if (element != null) {
    element.parentNode.removeChild(element);
}