I added content by html() function. The contents have elements like images and links, but I can't use click or any function for the added content using its id.
Example:
$("#container").mouseover (function(){
    $("#container").html('<a id="button1" href="#"><img src="images/button1.gif"></a>');
});
$("#button1").click(function(){
    $("#container").html ('any content'):
});
 
    