Auto-height Textarea
Adjust the height of textarea based on the content size.
Page Demo Plugin WebsiteBasic example
Start pressing the enter key to see the auto-height in action.
<div class="form-group">
<textarea class="form-control textarea-autosize" placeholder="Start typing..."></textarea>
<i class="form-group__bar"></i>
</div>
// Function available at /js/app.min.js (concat from /js/inc/functions/vendors.js)
if($('.textarea-autosize')[0]) {
autosize($('.textarea-autosize'));
}
Requirements:
/vendors/autosize/autosize.min.js