I am trying to find the current carriage position (flashing |) in the x and y coordinates. Does anyone have a way to do this? I really don't know where to start.
I know that this is possible in javascript, because there is a jQuery plugin for it, but I want to do it without jQuery.
In particular, I'm interested in how Google Instant displays selection # 1 as gray text. I plan to do this for both text fields and text fields by getting the caret position (as I mentioned above) and then placing the text using absolute positioning. If anyone has a better way to do this, let me know.
Thanks!
source share