Despite extensive research, I have yet to find an answer to my specific problem. Within a model window, I have a textarea element:
<div class="form-group">
<label for="groupDescription" class="col-sm-2 control-label">
Description: </label>
<div class="col-sm-10">
<form:textarea path="groupDescription" cssClass="form-control" />
<form:errors path="groupDescription" />
</div>
</div>
The textarea automatically matches the width of other input forms in the window, which is good. However, there is an issue where users can resize the width of the textarea beyond the modal window borders. How can I prevent this width resizing? Additionally, I would like to set a limit on the length, such as "2 rows maximum, but not exceeding 10 rows". Is there a way to achieve this without using JavaScript? Thank you in advance! :)
P.S. Apologies for modifying the title.