KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have read a few posts on positioning the caret, but none seem to answer my particular issue. I have 2 divs ( div1 and div2 ) div1 = noneditable div div2 = contenteditable div both divs contain exact same contents when user clicks on div1 , it gets hidden, and div2 appears in exact location and user can edit The problem : I want the caret to appear in exact location on div2 as div1 So, I need some way to READ the location where the user clicks on div1, and then when div2 appears place the cursor/caret in that same location, so a getCaretLocation(in_div_id) and setCaretLocation(in_div_id) set of functions. Any way to do that? Thanks -
Tags (comma-separated)
Save Edits
Cancel