Hello,
I'm working with jQuery 2.1.4. My web application uses different div tags and on one div tag there is called empty() from different modules. In my main module I would like to get an event if any submodule calls empty on my div. In code it should be:
- jQuery("#mydiv").on("empty", function(event) {
- console.log("div is cleared");
- });
and on submodul
- jQuery("#mydiv").empty();
How can I do this?
Thanks