jquery validation plugin simple validation code example
Example 1: jquery form validation
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);
Example 2: jquery validate
$("#myform").validate({
debug: true
});