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.
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>
(Coming soon)
(Coming soon)
Live example on DUzun.Me.
(Nothing yet)