Home > empty

jQuery: Difference between remove(), empty() and detach() methods

jQuery Difference between remove(), empty() and detach() methods

Definition: remove() – Removes all child elements with selected element. In this method you can restore all data but not event handlers of removed elements from the DOM. All data and events related with elements will be removed. empty() – Removes all content and child elements from the selected element. This method

This Article is TAGGED in , , , . Read more