Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
JavaScript textarea auto grow utility.
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
assets
samples
README.md
node-autogrow.js

README.md

AutoGrow Utility

An utility that makes textarea expands in height to fit its contents.
It is an YUI implementation of an idea, Expanding Text Areas Made Elegant by Neil Jenkins.

Usage:

<link rel="stylesheet" href="assets/node-autogrow.css">
<script type="text/javascript" src="http://yui.yahooapis.com/3.7.3/build/yui/yui-min.js"></script>
<script type="text/javascript" src="node-autogrow.js"></script>
<script>
YUI().use("node-autogrow", function (Y) {
    Y.one("textarea").plug(Y.AutoGrow);
});
</script>

<textarea>User input string...</textarea>

See Example

Something went wrong with that request. Please try again.