jquery cancel clear form code example
Example 1: jquery reset form
$('.login-form').trigger("reset");
Example 2: reset form jquery
$('#form_id').trigger("reset");
$('.login-form').trigger("reset");
$('#form_id').trigger("reset");