Answers for "how to make textarea 100% height of the value inside"

1

make textarea auto height

function autoResize() {
	console.log('resizing');
	textInput.style.height = (textInput.scrollHeight) + 'px';
}
Posted by: Guest on September-05-2021
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 "how to make textarea 100% height of the value inside"

Browse Popular Code Answers by Language