Auto-Growing Textarea with jQuery and MooTools
Posted on August 11, 2009, under JavaScript,
Bookmark it
AutoGrowing Textarea JQuery Plugin was inspired by Facebook’s auto-expanding text areas and makes it easy to have auto-growing textareas. The textarea grows and shrinks to fit it’s content, but does not exceed the minimum height you specify via CSS.

Required TextArea CSS Attributes:
- line-height
- min-height
You are required to have some basic styles for your textarea for it to work properly, but it’s really not that hard. The solution is simply to create a hidden div that mimics the textarea’s style and then when the height of the div surpasses the height of the textarea, we adjust the size of the textarea.
Flext: MooTools Auto-Growing Textrea Plugin, by Graham McNicoll

Features include:
- Very easy to implement
- Grows text areas when needed
- Maximum Height to Grow To
- Can grows parents if they have a fixed height
- Ghost text/text overlay for input context and help
- Text input emulation (enter can submit form, instead of new line)
Do you wish to receive the latest updates as soon as they are posted? Get our RSS Feed or Subscribe to the Newsletter!
- August 11, 2009
- article by Gabriel C.
- Share your thoughts!
Related Posts
-
Elastic jQuery Plugin Makes Your Textareas Grow Facebook Styleat August 21, 2009 with 1 comment
-
Auto Tab Form Fields using JavaScriptat March 7, 2009 with 1 comment
-
Easily add Captions to your Images with jQuery and MooToolsat August 12, 2009
-
Facebook-style Lightbox/Modalbox powered by jQuery and MooToolsat March 12, 2010
-
How to use the Scroll Effect in jQuery, MooTools and Script.aculo.usat March 16, 2009 with 7 comments
