When I prepend data to an existing page, it doesn't perfom any jQuery actions
<pre><code>&lt;div id="partition"&gt;
    hello
    &lt;input type="button" id="btn" value="submit"&gt;
&lt;/div&gt; &lt;!-- partitions ends --&gt;

&lt;!-- this posts the data and prepends the return data to partition div --&gt;

&lt;script type="text/javascript"&gt;
    $(document).ready(function() {
        $('#button').click(function(){
            var content = $('#content').val();
            var contentType = $('input[id=contentType]:checked').val();

            $.post('classes/updateStatus.php', { content: content, contentType: contentType }, function(data)
            {        
                $('#partition').prepend($('&lt;div id="partition"&gt;'+data+'&lt;/div&gt;').html(data));
            });
&lt;/script&gt;

&lt;script type="text/javascript"&gt;
$(document).ready(function() {
    $('#btn').click(function(){      
        alert("hello");
    });
&lt;/script&gt;
</code></pre>

<p>The problem with this script is that after prepending the data to partition div, it doesn't perform the necessary action. In this case, it doesn't popup an alert box.</p>
