.change or .delegate with 'change'
Is there a way to get each keypress to recognize?
Here's my code:
$("#makeContent").delegate('#makeSearch','change',function(){
var searchVal=$('#makeSearch').val();
$("#makeWrapper").load("../i/php/ajax-makes.php?page=1&search="+searchVal);
});
I'm trying to get the PHP script to .load on each keypress rather than hitting enter. When I use 'keypress' instead of 'change', I have to type REALLY fast for the browser to pick it up. Ideas?
Btw, #makeSearch is the id on an input field.
Thanks!