Is there any good jQuery / JS solution to get the absolute carriage position in the text area (given in X / Y coordinates or top / left coordinates).
The jQuery keyDown function's native Event object gives the x / y coordinates of the cursor, and I want something like this to work on the working caret.
My goal is to add a floating HTML element that will be positioned relative to the working position of the caret, so I need to somehow get its position.
I need a solution for working with TextArea elements, but a general solution for any editable html element will be even better!
source
share