Validatr

A simple jQuery plugin for basic form validation.

 

Just use:

$(function(){
$('form').validatr();
});