Skip to content
/ caret Public
forked from yanickrochon/caret

jQuery plugin to manipulate the caret's position in a text box

License

Notifications You must be signed in to change notification settings

codecoo/caret

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jQuery Caret

  • get the caret's position: pos = $(textarea).caret()
  • set the caret's position: $(textarea).caret(pos)
  • set the caret's position to the end: $(textarea).caret(-1)

Return value: the current/new caret position

About

jQuery plugin to manipulate the caret's position in a text box

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.1%
  • HTML 28.9%