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. |
BY Best Interview Question ON 29 Jun 2019