i append input in div:
$("#menuItems").append("<input type='button' id='"+$("#category").val()+"' class='menuItemDelete' value="+$("#category :selected").text()+" ><br>");
then i want to access element by class name but it does not give any responce. i try this:
$(".menuItemDelete").click(function(){
alert("abc");
});
and also try this:
$(".menuItemDelete").on("click", function(){
alert("abc");
});
how can i access it ?