<form method="post" action="">
<textarea name="text" cols=65 rows=2 value="">
</textarea>
</form><br><br>
<script>
$(function(){
$("textarea").keyup(function(){
if ($(this).val().length > 52) {
$(this).attr('rows', '15');
}
//$("body").prepend($(this).val().length+'<br>');
});
});
</script>