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: http://stackoverflow.com/questions/263743/how-to-get-cursor-position-in-textarea
Edit
I sorted out the line breaks issue in IE and posted an answer here: http://stackoverflow.com/questions/263743/how-to-get-cursor-position-in-textarea/3373056#3373056