title: How to get a value from TextArea using javascript?
body: <p>Well this question might look simillar to questions easily findable with google but for some reason all solutions out there have not worked for me. All I want to do is to check if there is text inside of textarea.</p>
  
  <p>JS snippet:</p>
  
  <pre><code>var PrzedDzier = document.getElementById('ctl00_m_g_87871370_ce46_4f47_b1eb_614d0106535d_ff105_1_ctl00_ctl00_TextField');   
  var a = PrzedDzier.val();
  if(a == "")
  {
    alert('FU');
    result = false;
  }
  </code></pre>
  
  <p>HTML baby:</p>
  
  <pre><code>&lt;textarea dir="none" class="ms-long" title="PDzier" id="ctl00_m_g_87871370_ce46_4f47_b1eb_614d0106535d_ff105_1_ctl00_ctl00_TextField" cols="20" rows="2" name="ctl00$m$g_87871370_ce46_4f47_b1eb_614d0106535d$ff105_1$ctl00$ctl00$TextField"&gt;&lt;/textarea&gt;
  </code></pre>
  
  <p>Debugger (Firebug) stops working at <code>var a = PrzedDzier.val();</code> so I assume it's something wrong with <code>val()</code> method...</p>