Validation with jQuery validator plugin
Reference
http://docs.jquery.com/Plugins/Validation/
Setup
A reference to jQuery validator plugin
<script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js”></script>
A reference to jQuery
<script type=”text/javascript” src=”http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js”></script>
Configuration – simple on class and attribute level
It is possible to declare your validation rules in various ways. It is suggested primarily to try it on class and attribute level and secondary using dependency-callback.
Example class and attribute rules:
<input id=”cemail” name=”email” size=”25″ class=”required email” [...]