jquery .live on load event
<p>I need a way to use the jquery <code>.live()</code> function to act on elements that are loaded via ajax.</p>

<p>For instance a div is loaded via ajax <code>.load()</code></p>

<pre><code>&lt;div id="mydiv"&gt;&lt;/div&gt;
</code></pre>

<p>Normally I do <code>.live()</code> with a click event, but I need to know how to tell the dom that this new div has loaded without any explicit actions/events from the user.</p>

<p>This code doesn't work, but I want to do something like this:</p>

<pre><code>mydiv = $("#mydiv");

mydiv.live("mydiv.length &gt; 0", function() {
       // do something
});
</code></pre>

<p>The "mydiv.length" being a substitue for the typical "click" or other event.</p>
