Answers for "textarea increase height with text"

5

fix textarea size

resize: none;
Posted by: Guest on May-16-2020
1

make textarea auto height

function autoResize() {
	console.log('resizing');
	textInput.style.height = (textInput.scrollHeight) + 'px';
}
Posted by: Guest on September-05-2021
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
0

get height of text in textarea

ele.scrollHeight (Height of text inside scroll inlduing what u cant see)
ele.clientHeight (What u see)
Posted by: Guest on September-05-2021

Code answers related to "textarea increase height with text"

Browse Popular Code Answers by Language