2

Is it possible to get absolute position of character in a textarea?

Nightfirecat
  • 11,432
  • 6
  • 35
  • 51
Mirgorod
  • 31,413
  • 18
  • 51
  • 63

2 Answers2

0

Yes, but it's much more complicated than it should be.

There is a demo demonstrating exactly this functionality, and the method used is discussed in this related question.

Community
  • 1
  • 1
Peter Olson
  • 139,199
  • 49
  • 202
  • 242
-1

Theoretically yes, it is possible, you need to simulate browser's text rendering! But that would be so complicated that I would never even start thinking about it :)

nobody
  • 10,599
  • 4
  • 26
  • 43