1// Remove all child nodes of the set of matched elements from the DOM
2// This method does not accept any arguments.
3$("div.parent").empty();
1// Remove all child nodes of the set of matched elements from the DOM
2// This method does not accept any arguments.
3$("div.parent").empty();
4
5$("button").click(function(){
6 $("div").empty();
7});