andrewfiorillo / ExpandingTextarea

jquery plugin for textareas that expand as you type, with an emphasis on speed/responsiveness

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expanding textareas

This is a plugin for jQuery that makes textareas expand as you type, with an emphasis on speed/responsiveness. Also, it handles textareas with percentage widths that might change size for whatever reason. This might be handy for responsive design, when the browser window is resized, or if there is an orientation change on a phone or tablet.

View the demo »

Usage

Include jQuery and expander.js

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript" src="expander.js"></script>

Call expander on whatever element or elements you'd like:

// A single 
$('#expander').expander();

// All texareas
$('textarea').expander();

About

jquery plugin for textareas that expand as you type, with an emphasis on speed/responsiveness


Languages

Language:JavaScript 60.7%Language:CSS 22.2%Language:HTML 17.0%