title: Textarea value undefined when using getElementsByTagName
body: <p>I stuck in a very simple thing that I need to do and I can't explain why is this happening. I have a <code>textarea</code> with no <code>id</code> or <code>class</code> or <code>name</code>, so the only way of selecting it with js is to use <code>getElementsByTagName</code>. It's the only <code>textarea</code> in my HTML so it's pretty obvious to use the following:</p>
  
  <pre><code>var theSrc = document.getElementsByTagName('textarea')[0].value;
  </code></pre>
  
  <p>However, when alerting <code>theSrc</code> I always get <code>undefined</code>. Any ideas why is this happening?</p>
  
  <p>Here's the demo: <a href="http://jsfiddle.net/D3zBU/" rel="nofollow">http://jsfiddle.net/D3zBU/</a></p>