Difference between detach and remove? : jQuery Mobile



Difference between detach and remove? : jQuery Mobile..

Answer / Vikas Gupta

The 'detach' method removes an element from the DOM but maintains its reference in memory, allowing you to reinsert it later. The 'remove' method also removes an element from the DOM, but does not maintain a reference to it.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

What are the various ajax functions?

1 Answers  


Which are the popular jQuery CDN? and what is the advantage of using CDN?

1 Answers  


Can you call C# code-behind method using jQuery? If yes,then how?

1 Answers  


What are different type of selector in jQuery?

1 Answers   Wipro,


What is the difference between prop() and attr() in jquery?

1 Answers  


Define type paremeter of jquery ajax method?

1 Answers  


Which command will give a version of jQuery?

1 Answers  


Why we use chaining in jquery?

1 Answers  


Tell me is jquery a w3c standard? : jquery mobile

1 Answers  


What is the method used to define the specific character in place of $ sign?

1 Answers  


Explain the concepts of "$ function" in jquery with an example?

1 Answers  


Can we include multiple version of jquery? : jquery mobile

1 Answers  


Categories