Are there any issues with using Jquery's .on() function as such:
$(document).on("click", "#myDynamicallyLoadedElement", function() {});
vs. something like:
$(".parentElement").on("click", "#myDynamicallyLoadedElement", function() {});
I feel like the $(document) usage would be much more inefficient and could cause performance or other issues with the browser.
Does anyone know if there are any issues with using $(document).on() this way?