How prevent click event?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4589964/jquery-disable-click">jquery - disable click</a>  </p>
</blockquote>



<p>How can I prevent a click event of a button's selector when is pushed? If there are some buttons. I want to lock the event of the button pushed. I have tried  with:    </p>

<pre><code>event.stopImmediatePropagation(); 
event.stopPropagation(); 
event.preventDefault();
</code></pre>

<p>But it does not work.</p>

<p>Edit: I haven't provided the code because is backbone code and this isn't a theme of that theme. If I have a list of buttons in a menu, and I press one multiple times, the code associated a that button is run multiple times. I want to lock this click event and unlock it if other button is pushed.</p>

<p>Solution:</p>

<pre><code>//disable
$("#button").bind('click', function() { return false; });

//enable
$("#button").unbind('click');
</code></pre>
