title: Jquery Assign label text which is in gridview
body: <p>How to get the label which is inside gridview and assign a text for that label using jquery. In general we use the following for assigning a text in jquery</p>
  
  <p><code>("[id$='label1']").val('Value')</code> or <code>$('#&lt;%=label1.ClientID%&gt;').val('Value')</code></p>
  
  <p>But as the control is inside the gridview how can I assign the text</p>
  
  <p>This is my ListView</p>
  
  <pre><code> &lt;tr&gt;
  &lt;td style="width: 50px; text-align: center;" rowspan="2"&gt;
  &lt;asp:Label ID="lblID" runat="server" Text=""&gt;&lt;/asp:Label&gt;
  &lt;/td&gt;
   &lt;td style="width: 50px; text-align: center;" rowspan="2"&gt;
  &lt;asp:Label ID="lblFirstname1" runat="server" Text='&lt;%# Bind("firstname") %&gt;'&gt;&lt;/asp:Label&gt;
  &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p>and in my script file I write as per below</p>
  
  <p><code>$("[id$='lblID']").text('Value');</code> Which didn't worked</p>