jQuery cannot see a dynamic element?
<p>I've a simple code as following:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;        
    &lt;div id="div1"&gt;
       &lt;input class="input1" type="text" value="click me 1" /&gt;
    &lt;/div&gt;

    &lt;script type="text/javascript"&gt;
       $('.input1').click( function() { alert('clicked'); });

       $('#div1').append('&lt;input class="input1" type="text" value="click me 2" /&gt;');
    &lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>I found that the 2nd textbox, which was appended to the "#div1", didn't get the click respond which is associated to the class "input1". </p>

<p>what am I missing? please advise me, thank you very much.</p>
