How to set cursor at the end in a TEXTAREA? (by not using jQuery)
Posted
by
Brian Hawk
on Stack Overflow
See other posts from Stack Overflow
or by Brian Hawk
Published on 2012-04-14T23:22:28Z
Indexed on
2012/04/14
23:31 UTC
Read the original article
Hit count: 249
Is there a way to set the cursor at the end in a TEXTAREA tag? I'm using Firefox 3.6 and I don't need it to work in IE or Chrome. JavaScript is ok but it seems all the related answers in here use onfocus() event, which seems to be useless because when user clicks on anywhere within textarea, Firefox sets cursor position to there. I have a long text to display in a textarea so that it displays the last portion (making it easier to add something at the end).
© Stack Overflow or respective owner