DOM Removal

jQuery

Category: DOM Removal


These methods allow us to delete elements from the DOM.

.detach()

Remove the set of matched elements from the DOM.

.empty()

Remove all child nodes of the set of matched elements from the DOM.

.remove()

Remove the set of matched elements from the DOM.