Due to the environment, I would like to limit this to something small and concise rather than a plugin, if only it is an extension that can be inserted in the direction of other jquery code.
I have this code:
$("#txtSearch").live('keyup', function () { LoadList(1) });
I would like to add such a delay that if the user has to wait (as if stopping the input) 0.5 seconds before making the call.
So, if letters are typed with an interval less than X between successive keystrokes, ajax call does not occur.
Is there a tiny succinct way to do this with jQuery?
jquery
Joshua enfield
source share