focus on textarea

wxdqz

New Member
On a website I have a form containing a TEXTAREA and also some buttons that add text to this TEXTAREA, after clicking one of the buttons I want to have the focus returned to the TEXTAREA, that's easy using the focus() function. The problem is that I want the cursor at the end of the text already enterd in the TEXTAREA and not at the start. That's what the focus() does. Any suggestions?
 
Back
Top