clear text box value in jquery code example
Example 1: how To clear all the input element inside div using jquery
By LOVE
$('#divStaffContent').find('input:text, input:password, select')
.each(function () {
$(this).val('');
});
}
Example 2: jquery clear text in div
// removes only text, no changes to children
$('#YourDivId').contents().filter((_, el) => el.nodeType === 3).remove();