I am using the jquery validate method to validate my form, I have written some code in submitHandler() method, However it taking time to execute. Please suggest me solution to overcome this issue.
$('#form').validate({
submitHandler:function(form) {
$('#loader').show();
$('#btnsubmit').hide();
$('#form').submit();
}
});
This code taking time to hide the button and submit the form, Suggest me the solution to overcome this issue.
Thanks in Advance!!!