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
This package has been deprecated
Author message:
moved to @accursoft/jquery-caret
pos = $(textarea).caret()
$(textarea).caret(pos)
$(textarea).caret(-1)
Return value: the current/new caret position
npm i jquery-caret
304
1.3.7
BSD-3-Clause
5.23 kB
4