title: Javascript to jquery multiple textarea size
body: <p>i found a solution for a problem i have in here <a href="http://jsfiddle.net/2UDdh/43/light" rel="nofollow noreferrer">http://jsfiddle.net/2UDdh/43/light</a> but i am trying to adapt it for jquery because i would like to later use .each() and &quot;this&quot; because i have multiple textarea coming from db with diferent id's.</p>
  <pre><code>    var textContainer, textareaSize, input;
  var autoSize = function() {
    textareaSize.innerHTML = input.value + '\n';
  };
  
  document.addEventListener('DOMContentLoaded', function() {
    textContainer = document.querySelector('.textarea-container');
    textareaSize = textContainer.querySelector('.textarea-size');
    input = textContainer.querySelector('textarea');
  
    autoSize();
    input.addEventListener('input', autoSize);
  });
  </code></pre>