jquery click without being attached to the DOM
<pre><code>var html = '&lt;div&gt;&lt;a href="#" id="test"&gt;Btn&lt;/a&gt;&lt;/div&gt;';
$(html).find("#test").click(function(){
  console.log("clicked");
});
//later
$(htmlNode).html(html);
</code></pre>

<p>Why don't I receive the "clicked" log?</p>
