I am validating the dates in below function. If the validation fails, then the form should not get submitted. I tried returning false in form onsubmit but it still gets subm
you can achieve the same thing using jQuery Form Plugin.
$(document).ready(function() { $('#your_form_id').ajaxForm( { beforeSubmit: dateCheck } ); });