I made a simple autocomplete implementation that would call ajax and load a hit list. Here is jsfiddle
http://jsfiddle.net/83hJw/
This, of course, only shows a warning saying βOKβ when the timer expires
You will notice that it resets the timeout to allow you to finish typing what you want, that is, if you pause for 0.3 seconds while typing, it will then search to not request the server too many times
I also need to run it only if the number of characters exceeds 4 characters.
Simply put, I want to know if there is a better way to do this in jQuery?
source share