Re: [jQuery] update div with textarea length

2009-11-24 Thread rjc
irst > element > selected (input, texarea, select, etc.) and $(this) should only point to > your textarea when it's responding to the keyup event. Could you show the > updated code and the associated html maybe ? > > Michel Belleville > > > 2009/11/24 rjc > >&g

Re: [jQuery] update div with textarea length

2009-11-24 Thread rjc
I would have never thought to use val(), but this solution unfortunately did not work The value still remains as 1 ? -- View this message in context: http://old.nabble.com/update-div-with-textarea-length-tp26492474s27240p26492632.html Sent from the jQuery General Discussion mailing list archive

[jQuery] update div with textarea length

2009-11-24 Thread rjc
Hi, i'm updating a div with the length of a textarea. $().ready(function(){ $("#formElement_profileTeamProfile").keyup(function() { var newText = $(this).length; $('#countCharTeamProfile').html(newText); }); }); Every time i ent