Why this can't work - live update using jquery
<p>I am writing my code like this:</p>

<pre><code>function updates_cb()
{
    in a while loop to call append_message
}

function append_message(message)
{
    append the html of message into the page
    now I am using selector to add callback to newly added element
    $(jmsg).hover(function(){console.log("hover");})
}
</code></pre>

<p>The problem is very weird, only the last element that added has .hover() callback setup, others don't have hover event handler setup.</p>

<p>Am I doing wrong? I can't manipulate the newly added element using jQuery? </p>
