Jquery Event Handling Question
<p>Say I have this code:</p>

<pre><code>$(document).ready(function()
{
   $(".foo").click(processFooClick);
}
</code></pre>

<p>Once the document has loaded, then via javascript I dynamically add a new div with <code>foo</code> class to the document:</p>

<pre><code>$("body").append( "&lt;div class='foo'&gt;click..&lt;/div&gt;");
</code></pre>

<p>Would this new div also have the event handler automatically applied to it, or would I need to run the event setting code ( $(".foo").click(...) ) again?</p>

<p>Would using jquery's <code>live</code> function help with this? If so, how?</p>
