Skip to content

you can get the cursor caret offset position(i.e.x,y) by this plugin, even included index getter.

Notifications You must be signed in to change notification settings

r14n/jquery-caret-position-getter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
		})

About

you can get the cursor caret offset position(i.e.x,y) by this plugin, even included index getter.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published