Interviewer And Interviewee Guide

Web Development Ninjas Interview Question:

Tell me what is the difference between detach() and remove() methods in jQuery?

Submitted by: Muhammad
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.
Submitted by: Muhammad

Read Online Web Development Ninjas Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.