jQuery Validation with support Material Design + Masked Input Plugin - Form validation made easy
If you use Material Design from Google and you need form validation, then these are extensions for you.
Getting Started
Install Plugin
With bower
bower install --save jquery.validate.md
With npm
npm install --save-dev jquery.validate.md
Including it on your page
Include jQuery, jQuery Validation, jQuery Masked Input and the plugin on a page. Then select a material design form (Text field) to validate and call the initValidate
method.
Your Name
The method takes the following arguments: rules = array, messages = array, debug = boolean
;
Example argument rules
var rules = email: required: true minlength: 4 emailfull: true
New Validation Method
$validator;
New Messages
$validator;
You can override the methods and messages with jQuery Validation
License
Copyright © Vladislav Mager
Licensed under the MIT license.