Is there a function in jquery equal to onkeyup=””
I already found change() but this only executes the alert when on blur, i want it like live searching when you write “a” (wants to write anton) then it should execute the function.. So when you write 5 words thats like 5 executions..
I tried this too:
$('#searchFriends').bind('keyup', function() {
alert('you wrote something');
});
But this just keeps executes and alerts never ends even if i stop writing something.. :S
Here you go:
Live demo: http://jsfiddle.net/LfYve/
You have to include Ben Alman’s Throttle/Debounce plugin into your page.