reset form with dynamic fields from php jquery code example Example: jquery reset form $('.login-form').trigger("reset");