java script, jquery
<pre><code>    &lt;body&gt;
&lt;button&gt; Change  &lt;/button&gt;

 &lt;div id="mydiv" style="margin:25% 0% 0% 37%"&gt;

 &lt;a href="#" onclick="alert('buhaha');" style="width:50px; height:50px; background-color:#99CC99; padding:10px; margin:5px"&gt;One&lt;/a&gt;
    &lt;a href="#" onclick="alert('buhaha');" style="width:50px; height:50px; background-color: #FF9900;padding:10px; margin:5px"&gt; Two&lt;/a&gt;
    &lt;a href="#" onclick="alert('buhaha');" style="width:50px; height:50px; background-color: #FFCC00;padding:10px; margin:5px"&gt; Three&lt;/a&gt;

&lt;/div&gt;&lt;/body&gt;
</code></pre>

<p>when i click my " change" button, onclick event must disable. after i click again my button onclick click must enable . how to do this two actions from one button .. if u can help me pls send jquery code ... </p>

<p>after disable onclick="alert()", i need to show this list USING Body Right Click
(when enable onclick="alert()" list should hide)</p>

<pre><code>&lt;ul id="companySelect" style="display:none"&gt;
&lt;li&gt; &lt;a href="#"&gt; DEN &lt;/a&gt; &lt;/li&gt;
&lt;li&gt; &lt;a href="#"&gt; SouthDelhi &lt;/a&gt; &lt;/li&gt;
&lt;li&gt; &lt;a href="#"&gt; Cham&lt;/a&gt; &lt;/li&gt;
&lt;li&gt; &lt;a href="#"&gt; GKS&lt;/a&gt; &lt;/li&gt;

&lt;/ul&gt;
</code></pre>
