passing a jquery object into a function
<p>How would you do something like this:</p>

<pre><code>somemethod($("#buttonelement"));

function(ele) {
  ele.click(function(event) { alert("hi"); });
}
</code></pre>

<p>in other words how do you pass in an element as a jquery object and register the click event.</p>
