# jquery-caret

> Manipulate the caret's position in a text box or content-editable element

Latest version **1.3.7** (published 2019-08-22) · BSD-3-Clause license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install jquery-caret
pnpm add jquery-caret
yarn add jquery-caret
bun add jquery-caret
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.3.7 |
| Published | 2019-08-22 |
| First published | 2014-09-02 |
| Weekly downloads | 0 |
| License | BSD-3-Clause |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 5.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 13 |
| Author | Gideon Sireling |
| Maintainers | princed |
| Keywords | jquery-plugin, caret |

## Links

- npm: https://www.npmjs.com/package/jquery-caret
- Repository: https://github.com/accursoft/caret
- Homepage: https://github.com/accursoft/caret#readme
- Issues: https://github.com/accursoft/caret/issues
- npm.io page: https://npm.io/package/jquery-caret

## Alternatives

- [gamedig](https://npm.io/package/gamedig.md) — 29.3K weekly downloads
- [join-monster](https://npm.io/package/join-monster.md) — 12.8K weekly downloads
- [masked](https://npm.io/package/masked.md) — 5.5K weekly downloads
- [@comunica/actor-query-process-explain-logical](https://npm.io/package/@comunica/actor-query-process-explain-logical.md) — 4.7K weekly downloads
- [@veracity/vui](https://npm.io/package/@veracity/vui.md) — 4.6K weekly downloads

## Recent versions

- 1.3.7 (latest) — 2019-08-22
- 1.3.6 — 2019-01-10
- 1.3.5 — 2014-09-03
- 1.3.4 — 2014-09-02

## 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

---
_Source: https://npm.io/package/jquery-caret · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
