I have an empty `div` element:

```
<div class="message"></div>

```

At certain point of the webpage, a `p` tag is dynamically added to the div:

```
<div class="message">
  <p>Some Message</p>
</div>

```

The `p` can get removed, then added again and so.

What event should I use to listen if the `div.message` has a `p` child and execute some code?

I found [this](https://stackoverflow.com/questions/7219795/jquery-element-exists-event) question, but it involves external plugins.

Isn't there an easy way to accomplish this?