I have this code
$("div").click(function () {
var CurrId = $(this).attr('id');
if (CurrId == "First") {
$("#MenuContent").empty();
$("#MenuContent").hide();
$('<img src="images/End_05.png" width="30" height="30" /> <a id="First" class style="text-decoration:none;color:black">any </a>').appendTo("#MenuContent");
$("#MenuContent").show("slow");
}
});
I.e when I click on div an image (suppose its name is mm) and a link appear. Now I wrote this:
$("img").click(function () {
alert('yes');
});
When I click on image (that mm) nothing is displayed. Any ideas?