how to clear the content of a div code example Example: clear a div $("#yourDiv").html(""); // jQuery