Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Textarea Cursor Position

Was wondering if anyone knows of a method in which I can programatically set the cursor position in a textarea.

— asked August 22nd 2010 by Rory Gilchrist
  • cursor
  • iphone
  • mobile
  • textarea
  • I'd like to know this too… Android, Ti SDK - Build 1.5.1

    — commented December 13th 2010 by Patrick Glass
  • Have you found a solution to this? I'm using Titanium Studio and also trying to find some solution for this since it makes text fields and "dollar value" input difficult.

    — commented September 6th 2011 by Lama Dingdong

5 Answers

  • Did you find a solution to this?

    — answered February 25th 2011 by Patrick Ballantyne
    1 Comment
    • I'd like to know this too… Android, Ti SDK - Build 1.7.5

      Did you find a workaround?

      — commented November 23rd 2011 by F. Huber
  • Still no workaround for this issue? :(

    — answered December 9th 2011 by Sky Tang
  • does anybody know a solution to this problem? I need this to write a custom keyboard for my app, like the one on the wolfram alpha app.

    — answered August 11th 2013 by Marcos Alan Gonzalez Schtulmann
  • use the textField.setSelection(x,y);

    — answered June 4th 2015 by Moin Pansare
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.