Skip to main content

.remove()

Removes all matched elements from te DOM tree, removes all DoMini related properties and events listeners, and returns them in a DoMini object.

Difference between .detach() vs .remove()
Both functions remove the elements from the DOM, but.detach() will keep the DoMini related data and event listeners. .remove() clears all DoMini related data and even listeners.

.remove(): DoMini

// Detach all paragraphs
var removed = $("p").remove();