I have an ajax call triggering on the maxlength of an input. However, it continues to trigger if a user continues to enter characters (because they count as a keypress). Is ther
Try this:
var ready = true; $("input#billZipCode").on("keyup", function( event ){ if(this.value.length == this.getAttribute('maxlength')) { if ($(this).valid() && ready) { zipLookup(this, "USA"); ready = false; } } });