Adding Validation to a form
- The example form
- Including rsv.js
- Defining your validation rules
- Adding the onsubmit handler
- The finished product
One of the nicer features of the script is that it goes hand in hand with a sister script - the PHP Validation script which works very similarly. You can almost literally copy and paste your rules from one to the other - saving precious time. Other features include its wide support for most of the common validation rules, plus it's fully extensible to allow programmers to augment the built-in validation rules with their own.
This tutorial explains the basics on how to add JS validation to a form. The tutorial does not exhaustively explore all the feature of the script. Visit the website for more information than you find here.