title: on/off click events in Jquery
body: <p>I am trying to toggle a click event on and off to prevent multiple function calls. Below is my code. The click is turning off but I can't seem to turn it on again. Thoughts? </p>
  
  <pre><code>$("#element").click(function(){
       doit();
       $(this).off('click');
   })
  
  function doit(){
  
      do stuff...
  
      //turn click back on
      $("#element").on('click');
  
  }
  </code></pre>