I have following type of code
<div id="parent-div">
<div id="child-div">
<!--content goes here -->
</div>
</div>
The child div comes from third party service it will get attached or removed dynamically. How to fire a javascript event during attaching the are removing the div