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 wo
Both top 2 answers doesn't work for me. So, here is my solution:
var timeout = null; $('#myInput').keyup(function() { clearTimeout(timeout); timeout = setTimeout(function() { //do stuff here }, 500); });