$("#alertMessage").append('<ul class="menu"><li><a id="home" href="#">Home</a></li></ul>');
$(document).ready(function () { $(#home).on(click, function () { alert("WOrking"); }); });
$('#alertMessage').on('click', '#home', function () { ... })
$("#home").click(function(){ alert("works"); })
$("#home").on("click", function(){ alert("works"); })
$(document).ready(function() { $("#home").click( function () {alert("WOrking");}); });
$(document).ready(function() { $("#home").click( function () { myfunction() }); }); function myfunction() { alert("WOrking"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)