$textarea.keyup(function(){ update(); });
I tired to add the live funtion to it. Like the following
$textarea.live(keyup(function(){ update(); }));
but i get
Uncaught ReferenceError: keyup is not defined
What am i doing wrong?
$textarea.keyup(function(){ update(); });
I tired to add the live funtion to it. Like the following
$textarea.live(keyup(function(){ update(); }));
but i get
Uncaught ReferenceError: keyup is not defined
What am i doing wrong?
Good syntax of .live
is .live( eventType, handler )
At least, write it like this : $textarea.live('keyup', update);
if you use a real handler or $textarea.live('keyup', function(){update();});
if you only use a function once.