What Im trying to do is - i dont know the name maybe - a Prediction Help Inputter inside a textarea. It uses jquery autocomplete. When the user types '[[g ' inside textarea (id=test), a input with autocomplete is opened (id=example), so it search in 'data'. When the user find the desired data, he must press Shif+Enter to insert the data into the textarea, closing with ']]'.

How could I find the position of the carret to make the input appears near there?

I dont want to find the index of the carret, but something like the x y absolute position.

I found this blog on google, but i did not understand how I could use this. My idea is found some x y position to give a top, left position em px to a div container with the input box.
–
LeoAug 13 '11 at 17:49