I have a problem with my code, I have some buttons which execute a function when they are called.
<button class="executeFucntion" > Example </button>
That one works, but I have other button which create buttons dynamically:
$("<button class='executeFucntion'>Example</button>").insertBefore("#id")
This buttons, the second ones, don't work with the next function and I don't know why:
$(".executeFucntion").on("click", function(e) {
//Code here
});
Any help? Thanks.