Hi all, I'd like to find out the Cursor Position in a TextArea. I need to insert some Text at this Position?
Any Idea how to do that ?
Peter
Printable View
Hi all, I'd like to find out the Cursor Position in a TextArea. I need to insert some Text at this Position?
Any Idea how to do that ?
Peter
Hello Peter!
You can pull that out from the text field's inputEl using JavaScript resources. At first selectionStart should do, but if you need to support older browsers you may consider other ways, like suggested in this stackoverflow thread.
Hope this helps!
Hello Peter!
Been a while since we last replied you and still no feedback. Do you still need help with this?
We may mark this thread as closed in 7+ days from now if you don't post a feedback, but we don't lock up threads so you'll still be able to post here whenever you feel like.