Turn Divs Off or On
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/14107856/switch-divs-off-on">Switch divs off/on</a>  </p>
</blockquote>



<p>Firstly, I realize that I have previously asked this question but I did not find a good response, so I am trying for a second time lucky!  </p>

<p>I have these divs (<em>they work similarly to buttons</em>) that I would like to be able to switch on/off whenever I choose.</p>

<p>This was my attempt, but apparently once a div is switched off it can't be switched on again.</p>

<p>FIRST,</p>

<pre><code>    $("#num-one").off();
    $("#num-two").off();
    $("#num-three").off();
</code></pre>

<p>THEN LATER ON,</p>

<pre><code>    $("#num-one").on();
    $("#num-two").on();
    $("#num-three").on();
</code></pre>

<p>These are my functions:</p>

<pre><code>$("#numOne").click(function(){
        doSomething();
    });

$("#numTwo").click(function(){
        doSomething();
    });

$("#numThree").click(function(){
        doSomething();
    });
</code></pre>

<p>These functions should work - but they should be able to stop working for sometime - disabled I guess - and re-enabled after sometime.
What is another way of achieving this?</p>

<p>Happy New Year!</p>
