javascript best practice to clear a div 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('');