Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (15 sloc) 369 Bytes

jQuery autosize

Textarea auto resize that actually works.

Usage

Simply run the plugin on any textarea:

$("textarea").autosize();

And bind on a textarea to listen for height changes:

$("textarea").bind("autosize", function(event, height) {
    console.log(height);
}

Compatibility

Tested in Chrome, Firefox, Safari, IE9, IE8