JavaScript : Form Validation
I recently came across a nice open source data validation library for web forms using javscript and css. It is called wForms and is really easy to use. really.
All you need to do is include the javascript and css files and then for each field you want validated, simply add a css class name to the element. Done.
For example, if you wanted to have a title field be required:
It handles basic validation, such as "is email", "is alpha-numeric" and some other good stuff. It pops up an alert, and highlights the field that is invalid.
The documentation and examples on their site is good for version 1.0, version 2.0 docs are on their way. They've made it quite easy to use, so documentation requirements is light. I was able to do what I wanted following the previous docs.
Kudos and Thanks to the whole Form Assembly team for this handy tool!
Here's a working example to see it in action:
Website: http://www.formassembly.com/wForms/
Examples v1: http://www.formassembly.com/blog/input-validation-explained/
Examples v2: http://www.formassembly.com/wForms/tutorials/custom_validation.php