javascript empty html object code example
Example 1: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
Example 2: javascript create object empty
var empty_obj = {};
Example 3: clear a div
$("#yourDiv").html(""); // jQuery