clear a div

JavaScript
$("#yourDiv").html(""); // jQuery
Source

Also in JavaScript: