The empty method
The empty method removes content from the selected elements (the elements themselves are not removed, but left empty).
Syntax
.empty();
Example
Let's remove the contents of the #test element:
<p id="test">Hello, <b>world</b>!</p>
$('#test').empty();
HTML the code will look like this:
<p id="test"></p>