jquery set null value to all elements with class code example
Example 1: javascript clear div
//using javascript
document.getElementById(elementID).innerHTML = "";
//using JQuery
$('#elementID').html('');
Example 2: jquery clear text in div
// removes only text, no changes to children
$('#YourDivId').contents().filter((_, el) => el.nodeType === 3).remove();