1.

Tell Me What Is The Difference Between Detach() And Remove() Methods In Jquery?

Answer»

Though both DETACH() and remove() methods are used to remove a DOM element, the main difference between them is that detach() keeps track of the last element detached, so that it can be reattached, while the remove() METHOD does keep a reference of the last removed method. You can also TAKE a LOOK at the appendTo() method for adding elements into DOM.

Though both detach() and remove() methods are used to remove a DOM element, the main difference between them is that detach() keeps track of the last element detached, so that it can be reattached, while the remove() method does keep a reference of the last removed method. You can also take a look at the appendTo() method for adding elements into DOM.



Discussion

No Comment Found