]>
iEval git - plack-app-gruntmaster.git/blob - js/90-autoresize.js
4 $( document
).ready(function() {
5 var hiddenDiv
= $(document
.createElement('div'));
7 hiddenDiv
.addClass('hiddendiv common');
9 $('body').append(hiddenDiv
);
11 $("textarea.autoresize").on('keyup', function () {
12 var content
= $(this).val();
14 content
= content
.replace(/\n/g, '<br>');
15 hiddenDiv
.html(content
+ '<br class="lbr">');
17 $(this).css('height', hiddenDiv
.height()+23);
This page took 0.048149 seconds and 5 git commands to generate.