I use something like this, for auto growing (auto size) textarea:
$('textarea').keyup(function() {
$(this).attr('rows', $(this).val().split("\n").length);
});
How to add smooth animation to auto growing for code above?
Function .animate()
with rows
doesn't work.