The plugins site is currently in development.
We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.
Advanced Form Validation
Form Validator with several features such as grouping required fields or conditional checking if it is valid or not. Also you can validate string, numeric, date or e-mail. And you can combine several validations. For example: required numeric input and minimum 5 chars long.
Easy to build your validation rules by css classes.
<input type="text" name="phone1" "req-min req-numeric req-both" minlength="9" rel="phones" ..>Customizable Plugin
You can edit error messages, date seperator, onsuccess function, standard error div selector.
Easy to assign
$('#submitBtn').formValidator({
scope : '#form',
errorDiv : '#errorDiv'
});Different forms of assign
You can trigger from button or just call the function:
$.formValidator...
$('#button').formValidator...
Here is the css classes:
- .req-string: Field requires string (Use to force other css classes to be required on submit)
- .req-email: Field requires email
- .req-min: Field requires minimum X characters (Add minlength parameter to input field)
- .req-numeric: Field validates numeric
- .req-date: Field validates date (dd.mm.yyyy)
- .req-both: Checks all group fields has some value if one of them filled (group by "rel" attribute)
- .req-same: Checks all group fields has same value if one of them filled (group by "rel" attribute)
Special thanks to Yusuf Natan & Mehmet Duran for comments..
