Here is my problem, I have an input element in a form that implements jQuery.Autocomplete and jQuery.validate, all work fine, except when I click an element in the autocomplete list to select it.
What happens is that the check happens before autocomplete sets its value. Since validation is done on onBlur and you just clicked an item in the autocomplete list, blurring and validation are done two seconds before entering a new value.
I would not mind a double check if it was the client side, but I happen to perform an expensive remote ajax check in this field, so I really would like to solve this correctly.
My first thought is to proxy all onBlur event checks through a function that expires after 10 ms, essentially reversing the order of events. But, I think it means breaking the jQuery.Validate.js code, which I would rather not do.
Any ideas?
source share