jQuery.on() not working
<p>I'm trying to change some things in my wordpress lightbox plugin when click event is fired on it. The lightbox itself is injected after the page is loaded so I have to use <code>on()</code>.</p>

<p>Javascript in the header:</p>

<pre><code>jQuery(document).ready(function(){
    jQuery("body").on("click", "#lightbox img", function() { 
        alert("t");
    });
});
</code></pre>

<p>I never see an <code>alert</code>. I tried changing the <code>#lightbox img</code> selector to <code>div</code> and still nothing.</p>

<p>EDIT: i get no error on chrome console and fixed the syntax error, which was caused by removing the functions that were useless for the question.</p>
