+$( document ).ready(function() {
+ var txt = $('#comments');
+ hiddenDiv = $(document.createElement('div')),
+ content = null;
+
+ txt.addClass('txtstuff');
+ hiddenDiv.addClass('hiddendiv common');
+
+ $('body').append(hiddenDiv);
+
+ $(".form-control").on('keyup', function () {
+
+ content = $(this).val();
+
+ content = content.replace(/\n/g, '<br>');
+ hiddenDiv.html(content + '<br class="lbr">');
+
+ $(this).css('height', hiddenDiv.height()+23);
+
+ });
+
+});
\ No newline at end of file