View Full Version : [CLOSED] Cursor Position in a TextArea

Oct 03, 2017, 11:20 AM
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 ?


Oct 04, 2017, 1:08 AM
Hello Peter!

You can pull that out from the text field's inputEl using JavaScript resources. At first selectionStart (https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement) should do, but if you need to support older browsers you may consider other ways, like suggested in this stackoverflow thread (https://stackoverflow.com/questions/2897155/get-cursor-position-in-characters-within-a-text-input-field).

Hope this helps!

Dec 01, 2017, 6:01 PM
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.