When using jquery .change
on an input
the event will only be fired when the input loses focus
In my case, I need to make a call to the serv
If you've got HTML5:
oninput
(fires only when a change actually happens, but does so immediately)Otherwise you need to check for all these events which might indicate a change to the input element's value:
onchange
onkeyup
(not keydown
or keypress
as the input's value won't have the new keystroke in it yet)onpaste
(when supported)and maybe:
onmouseup
(I'm not sure about this one)