Here is a jQuery plugin named "Valideasy " which helps you to validate your forms and input control without worrying about writing long lines of code.
Read this post on jquerybyexample.net