I just appended some html to another JQuery object. I want to get a reference to the newly created dom node so that I can call another function on it. As seen in the code below, I am not getting a reference to what I wanted. Instead of the new node, I am getting the node with the original id.
var a = $("#id").append("some_html");
a.live('click', function(event){
alert("hello!");
});