how to clear a div using js code example
Example: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');