Search code examples
jquerylive

Using a .live for a key up for a text area in jquery


$textarea.keyup(function(){ update(); });

I tired to add the live function to it. Like the following

$textarea.live(keyup(function(){ update(); }));

but I get

Uncaught ReferenceError: keyup is not defined

What am I doing wrong?


Solution

  • $textarea.live("keyup", function () {
        update();
    });