J plugin

Allows to use FormValidation as a jQuery plugin


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

After initializing the form with the plugin using $(form).formValidation(options), there are two ways to call the plugin method:


The first way mostly returns the FormValidation.Core instance, meanwhile the second one always returns the jQuery object representing the form. It's possible to chain methods as below:

Basic example


  • v1.0.0: First release