Right now I have a custom callback setup for a custom rule using the jQuery Validation Plugin that makes an AJAX request and returns the boolean result. This works fine for the first attempt, so if it is invalid, it displays the error. Any attempt after that is firing the custom callback which leads to multiple AJAX calls, one for each keyup event. Is there any way to disable the automatic firing of the custom callback on every keyup, just for this field?
There is an option. See here.
Disables onkeyup validation.
$(".selector").validate({
onkeyup: false
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With