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.

Below I am trying to select the textbox based off of the name haveing the text. Is there a "better" way of doing this? 

```
      $('#tblNewAttendees tr').each(function() {
   var test = $(this).find('input[name$="txtFirstName"]').val();
      });
    }

```

Html code

```
<table>
     <thead>
     </thead>
     <tbody>
           <tr>
                 <td>
                   <asp:TextBox ID="txtFirstName" Text='<%#Eval("FirstName")%>'      
                runat="server" Width="80px" />
                 </td>
          </tr>
     </tobdy>
</table>

```