Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
you can get the cursor caret offset position(i.e.x,y) by this plugin, even included index getter.
JavaScript
branch: master

Merge pull request #8 from dante2008/indentation

Fix indentation inconsistency
latest commit f040a13c06
@beviz authored
Failed to load latest commit information.
README.md Update README
demo.html first commit
jquery.caretposition.js Fix indentation inconsistency
jquery.js first commit

README.md

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
});
Something went wrong with that request. Please try again.