Answers for "html css textarea height auto"

2

html textarea height

<!-- textarea rows attribute -->
<textarea id="txtid" name="txtname" rows="4" cols="50" maxlength="200">
A nice day is a nice day.
Lao Tseu
</textarea>
Posted by: Guest on April-05-2021
1

make textarea auto height

function autoResize() {
	console.log('resizing');
	textInput.style.height = (textInput.scrollHeight) + 'px';
}
Posted by: Guest on September-05-2021

Browse Popular Code Answers by Language