Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A jQuery plugin to make textarea be resized automatically to fit its contents.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
README.md
jquery-autogrow-textarea.js

README.md

jquery-autogrow-textarea

A jQuery plugin to make textarea be resized automatically to fit its contents.

DEMO

http://jsfiddle.net/kuwabarahiroshi/7CsFR/

Why I wrote this plugin

A precedent plugin on this feature is found here:
http://www.technoreply.com/autogrow-textarea-plugin-version-2-0/

However, the plugin is not so good at multibyte character.
I, as a Japanese, thought it could be enhanced with using .scrollHeight to detect textarea height.

Misc

Tested

  • Win XP: IE8
  • Win Vista: IE9, Opera, Firefox
  • Mac OSX: Chrome, Firefox, Safari
  • iOS: mobile safari
Something went wrong with that request. Please try again.