I was doing some R&D on one of my problems with jquery validate, mean while the js function is not getting called in js fiddle. Here is the fiddle link jsfiddle
function formSubmit(){
if (!$("#tform").valid()) {
$("#tform").validate().focusInvalid();
return false;
}
document.getElementById('tform').submit();
}