how to clear the form in jquery code example Example: jquery reset form $('.login-form').trigger("reset");