If I'm adding a form to my page dynamically (whether through AJAX or other JS), how can I add event listeners to those elements on pageload before they exist?
I know with jquery it's fairly easy to bind to a parent element, something like this:
$(document).on('blur', 'input', function() {...})
but I'm unclear on how to do this with vanilla JS as addEventListener
must be applied directly to the element itself and can't specify the parent element for which the event should propagate? (I think, right..?)