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 Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…