Accessing Eval value inside Gridview Using JQurey OR JavaScript 
<p>I have <code>gridview</code> with four <code>columns</code>. All the data inside is generated in <code>RowDataBound</code> event using <code>Literals</code>
eg. </p>

<pre><code>      &lt;asp:TemplateField HeaderText="" &gt;
            &lt;ItemTemplate&gt;
                 &lt;asp:HiddenField ID="ID"  Value='&lt;%#Eval("id")%&gt;' runat="server" /&gt;  

                &lt;asp:Literal ID="ltrImage" runat="server"&gt;&lt;/asp:Literal&gt;

            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;  

       and

      &lt;asp:TemplateField HeaderText="" HeaderStyle-HorizontalAlign="Center"
            ItemStyle-Width="10%" ItemStyle-HorizontalAlign="Center"&gt;
            &lt;ItemTemplate&gt;
                &lt;asp:Literal ID="lrtBrief" runat="server"&gt;&lt;/asp:Literal&gt;      
            &lt;/ItemTemplate&gt;
        &lt;/asp:TemplateField&gt;    
</code></pre>

<p>In one of these <code>Literals</code> I am creating a <code>&lt;a&gt;</code> tag and I want to find the <code>&lt;%#Eval("id")%&gt;</code> value in <code>click</code> event of the <code>&lt;a&gt;</code> tag.</p>

<p>I did try something like this but didn't work</p>

<pre><code>$('.contactLink').click(function () {

    var grd = $('#MainContent_cphMain_DisplayResults1_gvDisplay');
    var txt = $(grd).find("cells[1].innerHTML").html();

});
</code></pre>

<p>HTML Looks Like this</p>

<pre><code>&lt;td align="center" style="width:5%;"&gt;
&lt;input id="MainContent_cphMain_DisplaySearchResults1_gvListing_Listing_0" type="hidden" value="1" name="ctl00$ctl00$MainContent$cphMain$DisplaySearchResults1$gvListing$ctl02$Listing"&gt;
  &lt;table class="contact"&gt;
  &lt;tbody&gt;
    &lt;tr&gt;
      &lt;td valign="top"&gt;
      &lt;h3&gt;Test&lt;/h3&gt;
      &lt;h3&gt;
      &lt;a id="hlContact" class="contactLink format"  runat="server"&gt;Contact&lt;/a&gt;
      &lt;a id="hlViewF" class="viewLink format" href="CategoriesSearch.aspx?ID=1" runat="server"&gt;View &lt;/a&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/tbody&gt;
  &lt;/table&gt;
&lt;/td&gt;
</code></pre>

<p>Any help will be appreciate</p>

<p>Thanks</p>
