Create An Auto-growing Textarea With AngularJS, JQuery, Or Plain Javascript

Posted By Weston Ganger

Autogrowing textarea tags are super handy to make your forms more readable. Its super easy to do this. Here I will show how to set this up with plain javascript, jQuery, and AngularJS

jQuery:

.controller("MyCtrl", function($scope){
  $scope.resize = function($event){
    $event.target.style.height = $event.target.scrollHeight + "px";
  };
});

Related External Links:

Article Topic:Software Development - Javascript

Date:October 13, 2016