New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Submitting form after validation #128
Comments
Can you paste the code that you are using on your site? |
Rick - it would be my pleasure. Thanks for getting back to me so quickly. Here it is... var validator = new FormValidator('register', [{
}); I just can't figure out how to get the form to submit (to my form_process.php) after successfully validating. At the moment the form simply confirms that all fields have validated. What I need, instead of the nice green box with the "all fields have successfully validated", is for the form to submit using the ACTION and METHOD parameters. I'm sorry Rick. I'm such a novice with JQuery. But I'm learning! |
Yes, the callback you have there is designed to prevent form submission. Specifically this section:
|
So if I remove that section of code, would the form submit automatically once it passes validation? I'm truly sorry for being such a "numpty" when it comes to JQuery. If it won't automatically submit, what call would I use there? |
Yes, it will submit. The code you have there is actively preventing the form submission. |
You're a legend. Works perfectly now. Thank you. |
Glad I could help! |
I'm really sorry - this is the first time I've used JQuery to validate a form and I'm a bit stuck with what to do next.
So, I've written the HTML. Your (wonderful, thank you!) code validates the fields and displays "All of the fields were successfully validated!" across the top in a nice little DIV. But the form isn't submitted according to the ACTION and METHOD parameters I set. It validates and then does nothing else.
What command do I need to use to get the form to submit to the handler after validation?
Thanks so very much in advance.
The text was updated successfully, but these errors were encountered: