removing a dom element in javascript code example
Example: javascript remove dom element
var elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);
var elem = document.querySelector('#some-element');
elem.parentNode.removeChild(elem);