After struggling for doing everything that I want, my jquery validation has stopped submitting the completed form.
The page is here: https://web.archive.org/web/20160612145452/http://www.fourwoodscountryhearts.co.uk/payments
I beleive if you change the line:
debug: true,
within the file paymentsformbits.js
to:
debug: false,
it should allow you to submit the form once you complete the validation process.
It thinks you are testing the script, so doesn't do the final submit. Once you finish testing (debugging) and go live, you should set it to false!
You'll have to complete basic validation, but one will try to submit and show an error, the other won't do anything just like you are experiencing.
Here is the script with debug: true
jsFiddle - Demo 1
Here it the script with debug: false
jsFiddle - Demo 2
This is the line of code from the validation script jquery.validate.js
which stops the form if debug: true
:
// validate the form on submit
this.submit( function( event ) {
if ( validator.settings.debug )
// prevent form submit to be able to see console output
event.preventDefault();
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.