0

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();
}
Albzi
  • 15,431
  • 6
  • 46
  • 63
Aadam
  • 1,521
  • 9
  • 30
  • 60
  • http://jsfiddle.net/7k6sa/ Use `No wrap-in head` option on the left hand side. In forked fiddle I have just moved your function in top and put in alert – Satpal Jul 03 '14 at 08:06
  • Thanks, that worked in jsfiddle, but my actual problem is that, the same code is not running in my jsp. I have cross checked it many times. What could be the possible reason. – Aadam Jul 03 '14 at 09:05

0 Answers0