"on" event not firing with dynamic content
===

I have the below code which using jquery *on* event.

        $(document).on('click', 'a.test', function (event) {
            alert('');
        });

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

    $.ajax({
        url: ...,
        ...
        ..
        success: function(response) {
    
            var dom = $(response.d.html);
            myContainer.html(dom.find('#ajaxcontainer'));
        }
    });

Can you help me fixing this? I am using jquery.1.7.2.min.js