How can I add a global listener in Javascript such that I see which html element (like a div, span, etc..) is created, and can decorate them if required?
In my case I want to add an class attribute to an html "input" element, if certain conditions are met.
It's an interactive website, so elements are created dynamically, so I can't do it when the page loaded as the input elements aren't created yet.