The official release of Ext.NET Mobile is now available. Ext.NET Mobile is an ASP.NET component framework for building Phone and Tablet specific mobile web applications. Read More

Cursor Position in a TextArea

  1. #1

    Cursor Position in a TextArea

    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 ?

  2. #2
    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!
    Fabrício Murta
    Developer & Support Expert

Similar Threads

  1. Replies: 2
    Last Post: Mar 19, 2012, 11:08 AM
  2. Replies: 11
    Last Post: Feb 29, 2012, 3:57 PM
  3. Replies: 5
    Last Post: Feb 28, 2012, 11:23 AM
  4. [CLOSED] Cursor position
    By Pablo_Azevedo in forum 1.x Premium Help
    Replies: 1
    Last Post: Mar 23, 2011, 4:55 PM
  5. [CLOSED] Messagebox prompt set cursor position to end
    By jchau in forum 1.x Premium Help
    Replies: 5
    Last Post: Jan 19, 2010, 11:40 PM

Posting Permissions