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?
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?
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