Watch the event oninput, and I will write about it here .
oninputIt works for all forms of text input - including cutting, pasting, undoing, repeating, clearing, dragging, and spelling correction. This is an HTML 5 event that is not supported in Internet Explorer 8 and below (but it is in the latest preview of IE 9). However, Internet Explorer supports its own event on all DOM objects onpropertychange. This is triggered whenever the value of an input element changes.
I didn’t notice that you checked jquery - since you did it, it's probably worth mentioning that I wrote a plug-in for implementing cross-browser events oninput. You can find it here .
source
share