My problem is, that even when I use .on, the click event over added div with class added does not triggers. This is my script from page.
$(".added").on("click", function () { alert("halo") });
$("#nextAdress").on("click",function (event) {
event.preventDefault();
$("#trainerRegistrationFields").append('<div class="added">adsa</div>');
}
Can you please help me so the click event will trigger also on the dynamically added element with class added?
Tahnk you in advance