Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/accursoft/caret
jQuery plugin to manipulate the caret's position in a text box
https://github.com/accursoft/caret
caret jquery jquery-plugin
Last synced: about 1 month ago
JSON representation
jQuery plugin to manipulate the caret's position in a text box
- Host: GitHub
- URL: https://github.com/accursoft/caret
- Owner: accursoft
- License: bsd-3-clause
- Created: 2019-08-20T15:13:03.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T18:13:12.000Z (about 4 years ago)
- Last Synced: 2024-11-14T09:48:36.026Z (about 1 month ago)
- Topics: caret, jquery, jquery-plugin
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@accursoft/jquery-caret
- Size: 14.6 KB
- Stars: 13
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
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