I have the following jQuery code placed against a search bar input text box:
$(document).ready(function(){
$("#q").keyup(function(event){
event.preventDefault();
$.post("newsearch.php",{q:$("#q").val()}, function(data){
$("#inboxHolder").html(data);
});
});
});
Its a bit glitchy. Results are populating correctly, but for example on some occasions I have to execute a space after I type my query for the results to populate.
Any feedback would be greatly appreciated.