Skip to content

Autogrow <textarea> (vertically or horizontally) to fit the contents automatically

License

Notifications You must be signed in to change notification settings

iCasa/jquery.autobox

 
 

Repository files navigation

Autogrow <textarea> while typing

Resize the <textarea> (vertically or horizontally) automatically to fit the contents.

Note: This plugin is under development. It is fully operational, but might have some unexpected behaviour.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.autobox.min.js"></script>
<script>
jQuery(function($) {

    // Adjust once Height/Width of all TEXTAREAs in `.myView` and it's descendants.
    $('.myView').autobox();

    // Bind autobox events to all TEXTAREAs in `.myView` and it's descendants.
    $('.myView').bindAutobox();

    // Bind autobox events to `document`, listening on `textarea.autobox` events.
    $(document).autoboxOn('textarea.autobox');

});
</script>

Documentation

(Coming soon)

Examples

(Coming soon)

Live example on DUzun.Me.

Release History

(Nothing yet)

About

Autogrow <textarea> (vertically or horizontally) to fit the contents automatically

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 93.8%
  • CSS 6.2%