Text area is designed to host integer number of lines. For this purpose, its height is defined in number of lines of text, which is controlled by the value of the attribute
rows
. With jQuery, use the method
.attr()
:
$('#TextArea1').attr("rows", "15");
In this sample, the text area gets the height sufficient to show 15 rows of text.
—SA