What are the difference between empty(), remove() and detach() functions in jQuery?

remove() detach() empty()
through it matched elements can be removed completely from the DOM it is more like with remove function, but it stores the data associated with elements. it removes all the child elements from the data.

Suggest An Answer

No suggestions avaliable!

Related Interview Questions