A repository of over 1000 quality jQuery plugins

jQuery .detach()

Learn all about the jQuery function .detach().

The .detach() method is the same as .remove(), except that .detach() keeps all jQuery data associated with the removed elements. This method is useful when removed elements are to be reinserted into the DOM at a later time.