reset the form using javascript code example
Example 1: jquery reset form
$('.login-form').trigger("reset");
Example 2: javascript reset form
document.querySelector("form").reset();
$('.login-form').trigger("reset");
document.querySelector("form").reset();