lib-used:- http://ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js
jquery
$(document).ready(function(){
$("#dynamic").append("<div class=id1>Dynamically created click</div>");
$("#id1").click(function(){
alert("triggerd func is:"+(this));
});
});
html
<body>
<div id="id1">Hard Coded Click</div><!-- working -->
</br>
<div id="dynamic"></div><!-- not working -->
</body>