I have a function that generates, what needs to be, a click-able check note. No problem with that, this is how the generated html code looks like.
<span class="edit">
<i class="fa fa-pencil" aria-hidden="true"></i>
</span>
Then I try to create another function so that I could manipulate another div. Problem is that it does not seem that the button is clicking. This is how the function looks like:
$(".edit").on('click', function(){
//function to edit tasks
alert("The check was clicked.");
});
Alert does not show up. Any ideas what might be wrong?