javascript empty div code example
Example 1: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
Example 2: how to empty an element in javascript
function clearBox(elementID)
{
document.getElementById(elementID).innerHTML = "";
}
//seems like there is no built in funciton's but in jquery
$(element).empty();
Example 3: clear a div
$("#yourDiv").html(""); // jQuery