in jQuery; How would I execute a function once a specific function is run. For example; everytime .text()
is run, can I run a function no-matter the context?
In this specific example i'm looking to listen to .append()
, reason being I need to re-register event listeners when new elements are placed on the screen. (i.e. btn click event listeners).
How can I accomplish this? Let us use refreshEvents()
as an example function.