Answers for "textarea with fixed height and width"

1

how to make textarea fixed size

resize: none;
Posted by: Guest on October-10-2020
0

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';
});
Posted by: Guest on June-03-2020

Code answers related to "textarea with fixed height and width"

Browse Popular Code Answers by Language