Disable anchor link failed with javascript
<p>I have anchor tag </p>

<pre><code>&lt;a id="click" href="javascript:void(0);" onclick="disable();" style=""&gt;Clickme&lt;/a&gt;.
</code></pre>

<p>When html loads it showing clickme,when i click anchor link,it calls <code>disable()</code> function,In disable function i am trying to hide it using below code:</p>

<pre><code>document.getElementById("click").style.display='none';
</code></pre>

<p>But page never hides that anchor link,Please let me know if i am doing anything wrong.</p>

<p>Thanks in advance.</p>
