function mySubmit() { var frm = $('#frm'); var result = frm.valid(); if (ret) { frm.submit(); } else { var errors = frm.validate(); //show errors.errorList } }