Unfortunately, as you've discovered, the "change" usually event only
fires when a field loses focus. I suggest, to catch changes as quickly
as possible, you do something like the following:

function doSomethingOnChange() {
  // do something
};

$(':text').bind('keyup change paste cut', doSomethingOnChange);

I have no idea if the "paste" and "cut" events will work, I know IE
supports them.

Karl Rudd

On Thu, Aug 28, 2008 at 7:35 AM, edpeur <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I want to have a simple event that notifies me whenever some <input
> type="text" /> gets changed its content.
> But I can not use change() because it only fires when the input
> changes and the input loses focus.
> The event I would like would be an mixture of keydown, keypress,
> paste, ... events.
>
> Do you guys know an easy way to have an event that fires when an input
> changes content without the need of losing focus?
>
> Eduardo
>

Reply via email to