mirror of
https://gitnet.fr/deblan/gist.git
synced 2021-08-14 08:30:49 +02:00
4 lines
121 B
JavaScript
4 lines
121 B
JavaScript
$('textarea').on('keyup change', function() {
|
|
$(this).attr('rows', Math.max(10, $(this).val().split("\n").length));
|
|
});
|