[jQuery] Delay keyup
[jQuery] Delay keyup
Hello
In the following code, I would like it delay the "keyup". Does anyone
have an idea?
$("#search_query").bind("keyup", function(e){
$("#quickresults").slideDown("fast");
$.post("http://www.wesbite.com", {search_query: $(e.target).val()},
function(result_list){
$("#quickresults > *:not(h3)").remove();
$("#quickresults").append(result_list);
});
});