jquery validation api code example
Example: jquery form validation
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);
function submitFunction(event){
event.preventDefault();
}
$("#form_id").submit(submitFunction);