jQuery | empty() with Examples
The empty() method is an inbuilt method in jQuery which is used to remove all child nodes and its content for the selected elements.
Parameter: This method does not accept any parameter.
Return Value: This method returns the selected element with the specified changes made by empty() method.
Below example illustrates the empty() method in jQuery:
Before click on the button:
After click on the button nothing will display: