title: how to toggle anchor tag text in jquery
body: <p>i want to toggle anchor tag text, i have an anchor tag within div, when user clicks on reply, comment box get open and text should change into close and vice versa but problem is that after text getting change to close, text remain become close nd toggle between show nd hide works clearly...</p>
  
  <pre><code>&lt;a id="reply" href="#"&gt;reply&lt;/a&gt;
  &lt;div id="replyuser" style=" position:absolute;"&gt;
      &lt;asp:TextBox ID="txt1" CssClass="txtbox" TextMode="MultiLine" runat="server"&gt;&lt;/asp:TextBox&gt;&lt;br /&gt;
      &lt;asp:Button ID="btnreply" Text="send" runat="server" CssClass="btn" /&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>jquery is as follows</p>
  
  <pre><code>$(document).ready(function() {
      $("#replyuser").hide();
  
      $("#reply").click(function() {
          $("#replyuser").toggle(function() {
              $("#reply").text("close");
          });
      });
  });
  </code></pre>