He talks about making a function "SetGlobalEventlistener" on document, that check for event.target's selector and fires if matches.
Altso: Is there anywhere in the application we can take advantage of (event)bubbling (from child to root/document) or capture (from root/document to child)??
Maybe for the live calculation of budget sums?
Another thing: Multiple eventlisteners can be placed on the same element. They are fired in the order they are defined. How can this be used for firing a specific flow of logic?
See video on Events etc https://www.youtube.com/watch?v=XF1_MlZ5l6M&ab_channel=WebDevSimplified
He talks about making a function "SetGlobalEventlistener" on document, that check for event.target's selector and fires if matches.
Altso: Is there anywhere in the application we can take advantage of (event)bubbling (from child to root/document) or capture (from root/document to child)??
Another thing: Multiple eventlisteners can be placed on the same element. They are fired in the order they are defined. How can this be used for firing a specific flow of logic?