Posted By: Ilya Birman
In my experience,
onchange event usually occurs only after you leave (
blur) the control.
Is there a way to force browser to trigger
onchange every time
textfield content changes? If not, what is the most elegant way to track this “manually”?
onkey* events is not reliable, since you can right-click the field and choose Paste, and this will change the field without any keyboard input.
setTimeout the only way?.. Ugly 🙂
See Another answer (2015).
Original 2009 Answer:
So, you want the
onchange event to fire on keydown, blur, and paste? That’s magic.
<textarea> on Safari. Use