you can get the cursor caret offset position(i.e.x,y) by this plugin, even included index getter.
JavaScript
Switch branches/tags
Nothing to show
Pull request Compare This branch is 8 commits behind beviz:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
demo.html
jquery.caretposition.js
jquery.js

README

Usage
========

    var pos = $('textarea').getCaretPosition();
    // now you can use left, top(they are relative position)
    $my_tip.css({
			left: this.offsetLeft + pos.left,
			top: this.offsetTop + pos.top
		})