This plugin helps to validate form fields.
With this plugin you can check if form field value is changed or not by checking if field has 'touched-warning' class. You can check if field has error by checking '.error-field' class. Error messages are displayed just below the field and are shown under '.reference-text' class.
You can apply this plugin to particular form by giving form ID as argument when calling, for example '#form1'. If you want to apply to all input fields in the web page then don't pass any arguments to the plugin.
This plugin will also take care of disabling submit form button if there are any errors.
Following fields can be validated with this plugin:
- SSN
- Number
- Minimum length
- Only Characters field
- Maximum length
- Integer field
- USA Zip code
- USA Phone number
- Email field
- TIN
- Blank value
- Only greater than 0 value
- City field
- HTML Select field for blank value
To use this plugin include form.validate.js and form.validate.css file in your web page. Once the page is loaded call the plugin.
Please take a look at index.html page for reference.
Screenshots:

