Maybe the problem is somewhere else then. Strings have a .length which is
the number of characters in them, .val() gets the value of the first 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 <r.jerome.cousin...@gmail.com>

>
> 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 at Nabble.com.
>
>

Reply via email to