Get value of dom element in ready function
<p>I want my textArea to resize when the page is fully loaded. I found that</p>

<pre><code>$(document).ready(function() {
  // Handler for .ready() called.
});
</code></pre>

<p>can help me, so I try to test it and put next code into that function:</p>

<pre><code>$(document).ready(function() {
      var element = $('#elementId');
      alert(element.value);
});
</code></pre>

<p>But when the page is loading, alert shows <strong>undefined</strong> value of textArea, however there is text inside it.
How can I fetch those value inside ready function?</p>
