Disable anchor tag using button click
<p>I need to disable anchor tag using button click event. I handled both server-side and client-side events for my requirement. I modified the 'href' attribute in client-side click event as follows.</p>

<p>[ASPX]</p>

<pre><code> &lt;asp:Button ID="Button1" runat="server" Text="Disable" OnClick="disable"  CausesValidation="false" OnClientClick="disable();"  /&gt;
</code></pre>

<p>[Script]</p>

<pre><code>     function disable() {
        $('a.ClassName').attr("href", "#")
    }
</code></pre>

<p>It gets set properly. But after the server-side process, anchor tag again sets with the old href attributes. How to resolve this?</p>
