Jquery Validation "remote" Method Response Waiting Message
I am using JQuery validation plugin 'remote' method for Ajax based validation. But I have to make some third party calls to verify data and it takes approx. 30 seconds. So need t
Solution 1:
You can see an example from below that i done:
jQuery Validate (Remote Method):
$("#myform").validate({
rules: {
email: {
required: true,
email: true,
remote: {
url: 'your-url-or-path-here.php',
cache: false,
dataType: 'POST', // Post, Get, Json, etcdata: {
field: $('.element').val()
}
beforeSend: function () {
$('.loading').css('display','none').show();
},
complete: function () {
$('.loading').hide();
}
}
}
}
});
Post a Comment for "Jquery Validation "remote" Method Response Waiting Message"