@accursoft/jquery-caret

1.3.7 • Public • Published

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

Dependents (1)

Package Sidebar

Install

npm i @accursoft/jquery-caret

Weekly Downloads

8,549

Version

1.3.7

License

BSD-3-Clause

Unpacked Size

5.24 kB

Total Files

4

Last publish

Collaborators

  • accursoft