Hi All,
I was looking for a validation with following options and as i couldn't find one with having all of them. i developed one and now sharing it with you guys.
- Lite
- Extendable and easy to add more validation rules
- Showing messages the way I want
So I developed one which 2,5 k (Yes damn lite) can be extended using
data-validate-whatever='whatevs' attr (HTML 5 format) and as it is not embedding any specific error popup/show system. You can show messages the way you like "Popup, Tooltip, inline, message box or ....".
Although it is HTML 5 technique but it is safe to be used with older browsers.
It is called jValidation
http://archive.plugins.jquery.com/project/jvalidation.
You can see the full doc at:
jQuery Validation Plugin Doc.
And see examples at:
jQuery Validation Demo.
I tried to cover all cases and make it general enough. I have been using it in different projects so far. Please give me your feedback so i can improve it. "remember the goal is to keep it general enough and expose most of functionality to outer world so each individual can use it the way they want".
It also follows Single Responsibility Principal. So you have HTML to make structure, CSS to style the structure and JS for functionality.
Cheers,
Arash