jQuery how to bind after unbind
<p>I've a super simple id tag which has click event. I've used JQuery unbind to disable the click for certain scenarios and when I try to bind again with code below the click event never gets fired.</p>

<pre><code>disableButton()
    {
    $('#id1').unbind('click');
    }
        .......
   enableButton()
    {
    $('#id1').bind('click');
    }
</code></pre>

<p>Click handler looks like below:</p>

<pre><code>$("#id1").click(function () {
        //apply some complex front end business rules

    }
</code></pre>

<p>Could someone please help me with what I'm doing right/wrong?</p>

<p>I just want to enable or disable the click , is there easier way to achieve this?</p>

<p><strong>UPDATE:</strong></p>

<p>From what I understand both bind and on requires a call back function which gets executed. This is going to be an issue for my case as I don't want to execute the click event but just enable the click event and ready for click to happen.</p>

<p>Isn't it possible to just to disable and enable click event without having to pass call back functions?</p>

<p>Thanks.
Thanks </p>
