title: jQuery/HTML - Disable OnClick
body: <p>as the title says I'm trying to disable OnClick for specific </p>
  
  <pre><code>&lt;div id="test" style="display: block; opacity: 0.89;"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>this <strong>div is loaded from external script which is obfuscated so i cannot see the specific code.</strong></p>
  
  <p>What I have tried to remove this</p>
  
  <pre><code>$("#test").click(function(){ return false});
  $("#test").unbind();
  $("#test").removeAttr("onclick");
  //Suggestions which do not work
  $('#test').on('click', function(e) {e.preventDefault();return false;});
  $("#test").click(function(event){
  event.preventDefault();
  });
  </code></pre>
  
  <p>None of the above work.</p>
  
  <p>EDIT: Solved my problem using .unbind("click"); after the div was created.</p>