Enable and disable click on element
<p>After clicking an element, I would like to disable <code>click()</code> on that element until the user performs some other task.  I've seen posts where people say to add the disabled attribute to the element, but that doesn't seem to work for me.</p>

<p>I've seen other posts where they recommend unbinding <code>click()</code>, but then one has to duplicate the code when re-binding the <code>click()</code>. Any suggestions on the best way to do this? Thank you</p>

<pre><code>$("#someElement").click(function(){
    //Disable click on #someElement, do some stuff, and show another element
    $('#anotherElement').show();
});

$('#anotherElement').click(function(){
    //Do some stuff and re-enable #someElement
});
</code></pre>
