title: How to enable and disable onclick event
body: <pre><code>function my_function () {} (...)
  
  // enabling onlick event
  $("#link").prop("onclick", "my_function()");
  
  // disabling onlick event
  $("#some_button_click").click() {
      $("#link").prop("onclick", null);
  }
  </code></pre>
  
  <p>I have a button that should disable an onlick event. That is fine.
  But then, I need to reset the onclick event to the initial state, which is enable.</p>
  
  <p>How can I do that?</p>