Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

.empty() in jquery

// Remove all child nodes of the set of matched elements from the DOM
// This method does not accept any arguments.
$("div.parent").empty();

$("button").click(function(){
   $("div").empty();
});
Source by api.jquery.com #
 
PREVIOUS NEXT
Tagged: #jquery
ADD COMMENT
Topic
Name
9+9 =