Submit the form if all fields are valid after validating
The following piece of code is the starting point to use the DefaultSubmit plugin:
The sample code above assumes that the FormValidation files are placed inside the
vendors directory. You might need to change the path depending on where you place them on the server.
Instead of submitting the form, you can use an Ajax request to send the form data to the server.
TipIf you want the form to be validated automatically when pressing its Submit button, use the SubmitButton plugin
- v1.0.0: First release