Get caret position in contentEditable div
I'm finding tons of good, crossbrowser anwers on how to SET the cursor or caret position in a contentEditable DIV, but none on how to GET or find its position...
What I want to do is know the position of the caret within this div, on keyup.
So, when the user is typing text, I can at any point now its cursor's position within the div.
<div id="contentBox" contentEditable="true"></div>
// ... ?
(I'm cross posting at http://stackoverflow.com/questions/3...nteditable-div, because of well... frustrations , but I will update both questions when I find an answer...)
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Tags for this Thread