Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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

This branch is 8 commits behind beviz:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

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