JQuery object vs HTMLElementxxx Object
<p>This works:</p>

<pre><code>$('h1').click(function(){console.log("clicked");};
</code></pre>

<p>this does not:</p>

<pre><code>var h1 = $('h1');
h1[0].click(function(){console.log("clicked");}
</code></pre>

<p>this works again:</p>

<pre><code>var h1=$('h1');
var h2 = $(h1[0]).click(function() {console.log("clicked");}
</code></pre>

<p>Would anybody explain why?</p>

<p>Thanks a lot!</p>

<p>Cheers
Long</p>
