text input clear jquery code example
Example 1: clear input jqueyr
$('#inputButtonID').val('');
Example 2: jquery clear text in div
// removes only text, no changes to children
$('#YourDivId').contents().filter((_, el) => el.nodeType === 3).remove();