Removes all children from each item in the selection. Text nodes and comment nodes are left as is.
The instance itself.
$('ul').empty();$.html();//=> <ul id="fruits"></ul> Copy
$('ul').empty();$.html();//=> <ul id="fruits"></ul>
https://api.jquery.com/empty/
Removes all children from each item in the selection. Text nodes and comment nodes are left as is.