SubmitButton plugin

Automatically validate the form when pressing its Submit button


The following piece of code is the starting point to use the SubmitButton 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.


If you want the form to be submited to the server after pressing its Submit button and all fields are valid, use the DefaultSubmit plugin


Look at the FieldStatus plugin to see how you can disable the Submit button when there is at least one invalid field


Try to press the Add product button to see the form will be validated.


  • v1.5.0: Fixed an issue that the click handler of submit button of ASP.Net form isn't executed. Now you can fix it by setting the aspNetButton option to true.
  • v1.0.0: First release

More examples