how to reset form onClick code example
Example 1: form reset jquery
$('#form_id').trigger("reset");
Example 2: javascript reset form
document.querySelector("form").reset();
$('#form_id').trigger("reset");
document.querySelector("form").reset();