Some time ago I have doubts about how it is better to establish the functions of jquery, besides a curious doubt:
In certain parts of the program that I am doing, I call the elements, for example:
$(document).on('click', '.accountNotification', function(){
alert("lalala");
});
and this works perfectly but nevertheless in other parts it does not work for me and I am forced to call it like this:
$('#finishProjectOption').on('click', function(){
alert("holi");
});