title: jquery get a textbox in a table
body: <p>I would like to select a textbox being dynamically created by an asp.net server control (listview) For each row in the table I need to run some javascript functionality over it.</p>
  
  <p>Below I am trying to select the textbox based off of the name haveing the text. Is there a "better" way of doing this?  </p>
  
  <pre><code>      $('#tblNewAttendees tr').each(function() {
     var test = $(this).find('input[name$="txtFirstName"]').val();
        });
      }
  </code></pre>
  
  <p>Html code</p>
  
  <pre><code>&lt;table&gt;
       &lt;thead&gt;
       &lt;/thead&gt;
       &lt;tbody&gt;
             &lt;tr&gt;
                   &lt;td&gt;
                     &lt;asp:TextBox ID="txtFirstName" Text='&lt;%#Eval("FirstName")%&gt;'      
                  runat="server" Width="80px" /&gt;
                   &lt;/td&gt;
            &lt;/tr&gt;
       &lt;/tobdy&gt;
  &lt;/table&gt;
  </code></pre>