jquery on(live function)
<p>Why this code is not working?</p>

<pre><code>$("div.class ul li").on("click","a",function(){
        alert("A");
});
</code></pre>

<p>But this works fine...</p>

<pre><code>$("body").on("click","div.class ul li a",function(){
    alert("A");
});
</code></pre>
