jQuery multiple textareas with different ids
<p>I have a page that contains multiple textarea elements.  These textareas and the IDs are generated dynamically when originally rendered to the screen.</p>

<p>I know that the selector for the textarea have to be identical.</p>

<p>I can loop through my original data that I used to generate the elements to create a variable that contains the actual id of the textarea.  But when I tried to do that I was getting an error.</p>

<p>This was my attempt:</p>

<pre><code>for (i=0;i&lt;=#.myglobals.result.length-1;i++){
var itemName = $.myglobals.result[i].id;
alert($('textarea#'+itemName).val());
}
</code></pre>

<p>What I ultimately want is to capture if the textarea has information in it and display<br>
the information if it does.</p>

<p>Please let me know.</p>

<p>Thanks!</p>
