For example : When click on the aaa button, 'bbb' button is inserted but later when click on the bbb button i dont have allert. Why ?
<button id="aaaa">aaaa</button>
<div id="abc"></div>
<script>
$("#aaaa").click(function() {
$("#abc").html('<button id="bbb">bbb</button>');
});
$("#bbb").click(function() {
alert("sasasa");
});
</script>