title: Get the text value from ASP.NET Hyperlink
body: <p>I'm trying to figure out how to use jquery to get the text out of an asp.net gridview hyperlink text.</p>
  
  <pre><code>&lt;asp:GridView ID="g" runat="server"  AutoGenerateColumns="False"  OnRowCreated="g_RowCreated" OnRowDataBound="g_RowDataBound" Width="755px" &gt;
  &lt;Columns&gt;
  
      &lt;asp:TemplateField HeaderText="" ItemStyle-HorizontalAlign="left" ItemStyle-Width="100%"&gt;
          &lt;ItemTemplate&gt;                                              
              &lt;asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="javascript://" onclick="&lt;%# Eval(&amp;quot;varId&amp;quot;, &amp;quot;return loadData('{0}',this);&amp;quot;)%&gt;" Text='&lt;%# Eval("varName","{0}") %&gt;' &gt;&lt;/asp:HyperLink&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  </code></pre>
  
  <p>Hyperlink1 the text value I want to grab that so I can use it as a column heading some where else on my page.  Is there a way to use jquery for this?  I've already know that using the getElementById wont work so what is after that?  I'm trying to get this text value so I can make it my jquery dialog title name.  </p>
  
  <p>Thanks</p>