<textarea class="ta" style="border:none" readonly>TextArea</textarea> $(".ta").height($(".ta")[0].scrollHeight);