I use change(handler) to listen to change events to a textarea, but I only receive an event when the textarea loses focus, but I want to receive an event as soon as the value changes.
$("#text_object").change(listener); function listener(dom){ alert("I'm not getting here before the textarea loses focus"); }
Unfortunately the browser only recognises a change when the field blurs, so you might want to try attaching a keyup listener. Not the most elegant solution, unfortunately.
Details at http://api.jquery.com/keyup/.
1.4m articles
1.4m replys
5 comments
56.9k users