jQuery empty() Method
Remove the content of all <div> elements:
Try it yourself »
Definition and Usage
The empty() method removes all child nodes and content from the selected elements.
Note: This method does not remove the element itself, or its attributes.
Tip: To remove the elements without removing data and events, use the detach() method.
Tip: To remove the elements and its data and events, use the remove() method.
Thank You For Helping Us!
Your message has been sent to W3Schools.