Use jQuery to unbind a click handler that wasn't added with jQuery?
<p>I want to use jQuery to remove a click event handler that wasn't added with jQuery.  For example:</p>

<pre><code>&lt;a onclick="alert('This was set by onclick.')" href="#"&gt;Click me&lt;/a&gt;

&lt;script type="text/javascript"&gt;
  $(document).ready(function(){
    $("a").unbind(); // Why isn't this working?
    $("a").click(function(event){
      alert("This was set by jquery click.");
    });
  });
&lt;/script&gt;
</code></pre>

<p>Is this possible?  <code>$("a").unbind()</code> isn't working.  The above code displays both <code>alert()</code> windows and not just the one added by jQuery.  I think <code>unbind()</code> only unbinds handlers which were bound with <code>bind()</code>.</p>
