"on" event not firing with dynamic content
<p>I have the below code which using jquery <em>on</em> event.</p>

<pre><code>    $(document).on('click', 'a.test', function (event) {
        alert('');
    });
</code></pre>

<p>My issue is that this is not firing for the content which is added dynamically via ajax:</p>

<pre><code>$.ajax({
    url: ...,
    ...
    ..
    success: function(response) {

        var dom = $(response.d.html);
        myContainer.html(dom.find('#ajaxcontainer'));
    }
});
</code></pre>

<p>Can you help me fixing this? I am using jquery.1.7.2.min.js</p>
