var timer;
$("input").on('keyup', function() {
clearTimeout(timer); //clear any running timeout on key up
timer = setTimeout(function() { //then give it a second to see if the user is finished
//do .post ajax request //then do the ajax call
}, 1000);
});