The simplest solution is just to not call e.preventDefault()
unless validation actually fails. Move that line inside the inner if
statement, and remove the last line of the function with the .unbind().submit()
.
More Related Contents:
- Stop form refreshing page on submit
- Clearing using jQuery
- Submitting a form on ‘Enter’ with jQuery?
- How to send a JSON object using html form data
- How to submit an HTML form without redirection
- Prevent form redirect OR refresh on submit?
- Drop-down box dependent on the option selected in another drop-down box
- How to prevent page from reloading after form submit – JQuery
- Property ‘submit’ of object # is not a function
- Adding rows dynamically with jQuery
- Best JavaScript solution for client-side form validation and interaction? [closed]
- Change the content of a div based on selection from dropdown menu
- jQuery Change event on an element – any way to retain previous value?
- Trigger standard HTML5 validation (form) without using submit button?
- How do you limit options selected in a html select box?
- How can I get all a form’s values that would be submitted without submitting [duplicate]
- Trigger standard HTML validation (form) without using submit button? [duplicate]
- submit event does not fire if submit initiated programmatically
- Get content of span
- copying the value of a form’s file input field to another form’s input field
- How to decode HTML entities using jQuery?
- Stop setInterval
- Intercept a form submit in JavaScript and prevent normal submission
- Creating a jQuery object from a big HTML-string
- How to format/tidy/beautify in JavaScript
- jQuery in Chrome returns “block” instead of “inline”
- Change form values after submit button pressed
- How to write into a file (in user directory) using JavaScript?
- Passing parameters to a JQuery function
- Validate Dynamically Added Input fields