title: how to disable an onclick event?
body: <pre><code>    &lt;form id="QandA" action="&lt;?php echo htmlentities($action); ?&gt;" method="post"&gt;
  
      &lt;table id="question"&gt;
  
      &lt;tr&gt;
      &lt;td colspan="2"&gt;
      &lt;a onclick="return plusbutton();"&gt;
      &lt;img src="Images/plussign.jpg" width="30" height="30" alt="Look Up Previous Question" class="plusimage" id="mainPlusbutton" name="plusbuttonrow"/&gt;
      &lt;/a&gt;
      &lt;span id="plussignmsg"&gt;(Click Plus Sign to look up Previous Questions)&lt;/span&gt;
      &lt;/td&gt;
      &lt;/tr&gt;
      &lt;/table&gt;
  
  
      &lt;/form&gt;
  </code></pre>
  
  <p>In the code above I am able to replace an image with another image when the if statement is met. But my problem is that when the image is replaced, it does not disable the on click event. My question is that when the image is replaced, how do I disable the onclick event <code>onclick="return plusbutton();</code>?</p>