jquery set text in textarea

Author: Autokung
jquery set text in textarea

<textarea name=”textf” cols=”80″ rows=”10″ id=”textf”></textarea>
$(“textarea#textf”).val( textToset );
And ?getting the text from textarea
using
var text = $(“textarea#textf”).val();
I haven’t tested it but: var $t = $(‘textarea’);//whatever the selector you use. $t.animate({ scrollTop: $t.height() }, 1000); On Oct 25, 8:54 am, Eli <[EMAIL PROTECTED]> wrote: > Hey, > I’m in need for a function that will scroll my textarea to the bottom > each time it’s updated, how can I do that? > > Thanks, > Eli
Created with ... Evernote.com

Leave a Reply