I'm trying to set min and max rows to textarea and then edit in javaScript code. The problem is that I found it possible to only set rows attribute and don't know how to manipulate with this in javascript code
You can use this method.
const myText = document.querySelector('.my-text');
myText.style.maxHeight = "400px";
myText.style.minHeight = "100px";
.my-text {
border: 1px solid red;
}
<textarea class="my-text" rows="3"></textarea>