clear text from element vanilla 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('');