i have this event on keydown:
$.post("search.php", { s: $('#box_s').val()},
function(data) {
/**/
}
});
the problem is that as many keydown as many requests and sometimes older requests override recent requests results
so i would need to
$('input#box_s').keydown(function(){
abort_previous_post();
$.post("search.php", { s: $('#box_s').val()},
function(data) {
/**/
}
});
});
is that posible?