Run javascript function when user finishes typing instead of on key up?

I want to trigger an ajax request when the user has finished typing in a text box. I don’t want it to run the function on every time the user types a letter because that would result in A LOT of ajax requests, however I don’t want them to have to hit the enter button either.

Is there a way so I can detect when the user has finished typing and then do the ajax request?

Using jQuery here!
Dave

33 s
33

Leave a Comment