Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
97
rated 0 times [  103] [ 6]  / answers: 1 / hits: 16180  / 14 Years ago, tue, april 13, 2010, 12:00:00

With this code I can check the caret position in a textarea in firefox:



document.getElementById(myTextArea).selectionStart


This doesn't work in IE 8. How can I get the caret position in IE 8?


More From » html

 Answers
76

See the answers here: Caret position in textarea, in characters from the start



Edit



I sorted out the line breaks issue in IE and posted an answer here: Caret position in textarea, in characters from the start


[#97088] Saturday, April 10, 2010, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
janjadonb

Total Points: 4
Total Questions: 114
Total Answers: 118

Location: Mali
Member since Fri, Dec 3, 2021
3 Years ago
janjadonb questions
;