Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A small helper library for textareas.
JavaScript CSS
branch: master

Merge pull request #8 from dandv/patch-2

Explain what the interesting functionality is
latest commit 86a62295af
@amasad amasad authored

README.md

textareaHelper

A small library that mirrors a textarea's content onto a <div> to add some interesting functionality:

  • query the height of the textarea content
  • get the XY coordinates of the caret position

Demo.

Running the tests

open test/tests.html

Usage

$('#myText').textareaHelper();
$('#myText').textareaHelper(method);

Methods

.textareaHelper('height')

Get's the textarea's content height.

.textareaHelper('caretPos')

Get's the XY coordinates of the textarea's caret relative to the textarea.

.textareaHelper('destroy')

Destorys the helper mirror object. Use for cleanup.

License

MIT

Something went wrong with that request. Please try again.