Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get caret postion of offset from inputor

License

NotificationsYou must be signed in to change notification settings

TimLang/jquery.caret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Get caret postion or offset from inputor

This is the core function that working inAt.js.
Now, It just become an simple jquery plugin so that everybody can use it.
And, of course,At.js is using this plugin too.

Usage

// Get caret position$('#inputor').caret('position');// => {left: 15, top: 30, height: 20}// Get caret offset$('#inputor').caret('offset');// => {left: 300, top: 400, height: 20}varfixPos=20// Get position of the 20th char in the inputor.$('#inputor').caret('position',fixPos);// Get offset of the 20th char$('#inputor').caret('offset',fixPos);// more// Get caret position from first char in inputor.$('#inputor').caret('pos');// => 15// Set caret position from first char in inputor.$('#inputor').caret('pos',15);

About

Get caret postion of offset from inputor

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp