js how to clear everything on a dic 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('');