PDA

View Full Version : Cursor Position of a textfield



beto
4 Jun 2009, 12:10 PM
Hi everybody!
Is there any way to get the position of the cursor in a textfield?
My problem is that I have to insert some text in the textfield where the cursor is at that moment, by pressing a button.

Thanks in advance!

Beto.

5 Jun 2009, 5:22 AM
http://www.webdeveloper.com/forum/showpost.php?p=400718&postcount=2

5 Jun 2009, 5:22 AM
Btw, i found that by googling "textfield cursor position"

beto
5 Jun 2009, 5:46 AM
Thank you very much!!

pictor
8 Jul 2009, 7:00 AM
This solution does not work however when using extjs textfield or textarea objects, only raw html input and textarea.