removeElement
Removes an element from the DOM.
- Use
Element.parentNodeto get the given element's parent node. - Use
Element.removeChild()to remove the given element from its parent node.
Removes an element from the DOM.
Element.parentNode to get the given element's parent node.Element.removeChild() to remove the given element from its parent node.