Element.remove()
Remove an element from the DOM. Call the remove()
method on the element you want to remove.
var elem = document.querySelector('#some-element');
elem.remove();
Remove an element from the DOM. Call the remove()
method on the element you want to remove.
var elem = document.querySelector('#some-element');
elem.remove();