jQuery Plugin For Auto Expandable Textarea - expandable

jQuery Plugin For Auto Expandable Textarea - expandable
File Size: 5.33KB
Views Total:
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   

expandable is a jQuery plugin for auto increasing the size of textarea with a smooth animation effect to fit the content as your user types.

How to use it:

1. Include jQuery library and expandable.js in your head section

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery.expandable.js" type="text/javascript"></script>

2. Call the plugin

<script type="text/javascript">
      jQuery(function($) {
           $('textarea').expandable();
      });
</script>

3. Markup

<textarea name="example"></textarea>

Change Log:

v1.1.4 (2013-04-04)

  • Add update event that can be triggered to force a recheck of the textarea. 
  • Prevent re-running the plugin multiple times for one textarea. 

This awesome jQuery plugin is developed by brandonaaron. For more Advanced Usages, please check the demo page or visit the official website.