jQuery DOMNodeInserted: Find specific element
<p>I would like to know how I can listen to the DOM when a SPECIFIC element is added, and then act upon it.</p>

<p>After the DOM s loaded initially, there is a div(.myElement) that is loaded long afterwards:</p>

<pre><code>&lt;div class="container"&gt;.
   ...
   ...
   ...
   &lt;div class="myElement"&gt;&lt;/div&gt;
&lt;/div&gt;

 $("div.container").bind("DOMNodeInserted",function(){
        alert("div.myElement has just been appended");
    });
</code></pre>

<p>Now the moment the element:</p>

<pre><code>&lt;div class="myElement"&gt;&lt;/div&gt;
</code></pre>

<p>is added to the parent div(container), i want to run a function.
How do i do that?</p>

<p>Thank you</p>
