bradens / caret

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

Home Page:http://code.accursoft.com/caret

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

http://code.accursoft.com/caret

License:BSD 3-Clause "New" or "Revised" License