in jquery when click button form is rest code example Example: jquery reset form $('.login-form').trigger("reset");