I have an HTML form. I am validating my form using jquery.validate.js
and it works on submitting an event. I want to validate this form before submit get fired.
As per my research I have tried :
$('#my-form').on('before-submit',function(){
alert('Before submit performed');
});
I want to validate the form Just before firing submit event. How to do this?