Bind actions to some html then append
<p>Let's imagine that we have some piece of html with appended actions.</p>

<pre><code>var html = $('&lt;a href="#"&gt;click me&lt;/a&gt;');
html.find('a').bind('click', function(e) {
   alert('You clicked me!');
});
</code></pre>

<p>Now we want append this piece of html (with binded actions) to some <code>&lt;div id="destination"&gt;&lt;/div&gt;</code>.</p>

<pre><code>$('#destination').append(html);
</code></pre>

<p>Is it possible?  (see <a href="http://jsfiddle.net/6v5NJ/11/" rel="nofollow">jsfidder</a>)</p>

<p>I need this functionality to bind some actions for modal window's content and then append this content to modal window's html wrapper and then invoke <code>Modal.show()</code>. So </p>

<p>Is it good practice or it is not recommended to do?</p>
