i am using ajaxForm() frame work to send my data without reloading my page.
$(\'#ReplayForm\').ajaxForm({ success : function(data){ aler
Use beforeSend option in JQuery AJAX framework, if the test fails return false should do it.
beforeSend
return false
$('#ReplayForm').ajaxForm({ success : function(data){ alert("Success"); }, beforeSend: function() { if(!myFunc()) { return false; } } });