.detach()
Remove the set of matched elements from the DOM.
These methods allow us to delete elements from the DOM.
Remove the set of matched elements from the DOM.
Remove all child nodes of the set of matched elements from the DOM.
Remove the set of matched elements from the DOM.
Remove the parents of the set of matched elements from the DOM, leaving the matched elements in their place.