View Full Version : How do you display a div at the cursor(caret pos) in a textarea?

01-27-2005, 11:24 PM
Ok, I have read all the textarea caret postings. I still haven't found an answer to problem. I am trying to show a hidden div on keypress in a div at the cursor position. I get it to dislplay on keypress at mouse coordinates, but cannot figure out how to translate the cursor position into x.y coordinates. Can anyone give am an idea on how this can be accomplished? if it can be at all.