Launch an effect when element has specific class dynamically
<p>I want to launch an alert when a specific element has certain class, but this class is only added by another trigger after the DOM is loaded. How can i capture the moment when this specific element recieve his new class and launch an other event?</p>

<p>Ex:</p>

<pre><code>    &lt;a class="active"&gt;&lt;/a&gt;
    &lt;a class=""&gt;&lt;/a&gt;
    &lt;a class=""&gt;&lt;/a&gt;

    Click on &lt;div&gt;next&lt;/div&gt;

    |
    V

   &lt;a class=""&gt;&lt;/a&gt;
   &lt;a class="active"&gt;&lt;/a&gt;
   &lt;a class=""&gt;&lt;/a&gt;

   Click on &lt;div&gt;next&lt;/div&gt;

   |
   V
  &lt;a class=""&gt;&lt;/a&gt;
  &lt;a class=""&gt;&lt;/a&gt;
  &lt;a class="active"&gt;&lt;/a&gt; -&gt; launch an alert at this moment
</code></pre>

<p>Thanks!!</p>
