I know this is a pretty old question, but I solved the same problem using e.preventDefault () after the keyup function.
$("#email").keyup(function (e) { e.preventDefault();
Thus, if you select autofill with a browser offer, enter will notice. The problem remains when you click on the tooltip, but it works fine if you press any key after selecting it.
FINAL DECISION
I found this post on stackoverflow: fooobar.com/questions/190967 / ...
and using .on ("enter") does the trick!
$("#email").on("input",function (e) {
source share