Not able to get value of textarea in .val
<p>HTML:<br></p>

<pre><code>&lt;textarea cols="50" rows="5" id="txtHtmlContent"&gt;
&lt;/textarea&gt;
</code></pre>

<p>jQuery:</p>

<pre><code>if ( $("#rdbHtmlContent").attr("checked") ) {
  alert( $('#txtHtmlContent').val() );
}
</code></pre>

<p>But alert show empty. What is my mistake?</p>
