title: How to loop through each row of gridview in jquery?
body: <p>Hi I am developing one application in asp.net. I have one gridview with hiddenfield attached to it. I want to iterate through each row of the hidden field and i want to get hiddenfield value. This is my gridview.</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" HeaderStyle-BackColor="#3AC0F2" HeaderStyle-ForeColor="White"
      AutoGenerateColumns="false"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:CheckBox ID="chkRow" runat="server" /&gt;
                  &lt;asp:HiddenField ID="Hidden" runat="server" Value='&lt;%#Eval("Name")%&gt;' /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="150" /&gt;
          &lt;asp:TemplateField HeaderText="Country" ItemStyle-Width="150"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="lblCountry" runat="server" Text='&lt;%# Eval("Country") %&gt;'&gt;&lt;/asp:Label&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <p>I want javascript to iterate through each row of gridview.</p>
  
  <pre><code>$('#&lt;%= GridView1.ClientID %&gt; input[type="HiddenField"]').each(function () {
                //Get hidden field value
              });
  </code></pre>
  
  <p>May i get some help how to get hiddenfield values. Thank you all</p>