Set html into <div> then add listener with jQuery?
<p>I did similar things with this before:</p>

<pre><code>$.append(html,listener);
</code></pre>

<p>This will work for me because the listener will be added AFTER html is loaded.</p>

<p>And I can't do this:</p>

<pre><code>$.html(html);

listener();
</code></pre>

<p>Because this way I can't ensure html is loaded.</p>

<p>How to do it the right way?</p>
