i have a question about jquery, i can't get DOM event, when i insert a new code to html DOM
<p>like this</p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"&gt;&lt;/script&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div id="test"&gt;321&lt;/div&gt;
&lt;/body&gt;

&lt;script&gt;
$(document).ready(function(){

    $("#test").click(function(){
        $.ajax({
            url:"http://address/",
            type:"post",
            data:{id:"123"},
            success: function(r)
            {
                $("#test").after(r); // it will return &lt;div id="test2"&gt;123&lt;/div&gt;
            }
        });
        return false;
    });

    $("#test2").click(function(){
        alert('123');
        return false;
    });

});
&lt;/script&gt;
&lt;/html&gt;
</code></pre>

<p>first click #test and insert #test2 then i click #test2, it can't to get click event,  help me, what's problem</p>
