npm.io
1.3.7 • Published 7 years ago

jquery-caret

Licence
BSD-3-Clause
Version
1.3.7
Deps
0
Size
5 kB
Vulns
0
Weekly
0
Stars
13
DeprecatedThis package is deprecated

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

Keywords