title: How to get a textarea element in jquery when the name is in a variable
body: <p>I am trying to populate multiple text areas with a single select button .
  For my application I cant use anything else (esp id's)
  All the textareas are dynamically created and are named in order tx1 , tx2 ... txn.</p>
  
  <p>my code is like ....</p>
  
  <pre><code>var count = 13;
              for(var i=1;i&lt;count;i++ )
              {
              var txtname = 'tx' + i;
  
              var txt1 = $('textarea[name=txtname]');
  
  
              var selTxt1 = $(this).find("option:selected").attr('text');
  .....
  </code></pre>
  
  <p>.....</p>
  
  <p>but <code>var txt1 = $('textarea[name=txtname]');</code> does not work !!!
  How do i provide the dynamically created name of the txtaarea to the var txt1 .</p>