how to auto resize textarea code example
Example 1: textarea scale to content
<textarea rows="10" style="font-size: 2vw; width:100%;"></textarea>
Example 2: html textarea auto height to amount of text
$('textarea').each(function () {
this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow-y:hidden;');
}).on('input', function () {
this.style.height = 'auto';
this.style.height = (this.scrollHeight) + 'px';
});