What is the equivalent jQuery code to the following JavaScript which saves off onclick events?
<p>So in JavaScript I can do the following:</p>

<pre><code>var someObj = document.getElementById("foo");
var fooClick = foo.onclick;

var someOtherObj = document.getElementById("bar");
someOtherObj.onclick = fooClick;
</code></pre>

<p>I'm wondering, what is the jQuery equivalent to the code above?</p>

<p>Thanks!</p>
