How to check button click in Jquery validation
I am using JQuery validation for asp.net my project...
I am facing a problem with the ajax base form..
I am handling the validations on postbacks. I just want to do it on click event..
like checking for a button click event in the page..I do have 3 button in my page and a asp.net grid.
If i click on the paging it doing a post back the validation triggers...
so I just want to check for
if(its a button submit)
{
validate the form..
}
Here is my code:
var isValid = $('#form1').validate({
errorClass: 'error',
}, submitHandler: function () {
}
}).form();
if (!isValid) {
CancelPostback(sender, args);
} else {
//$('#button').attr({ 'disabled': 'true' }).val('Please Wait');
}