jQuery, click event doesn't fire <p>My problem was (because I solved it, but I don't know why it worked): I had two <code>'span'</code> tags inside my <code>DOM</code> with the same <code>CSS</code> class. One span was added via AJAX request. I was trying to fire click event on them using:</p> <pre><code>$('.css class').on('click', function ... </code></pre> <p>but <code>'span'</code> tag that was added second (AJAX) didn't produce click event. When I've changed above line to:</p> <pre><code>jQuery('body').on('click', '.css class', function(e){... </code></pre> <p>everything started to work as it should. I don't know why.</p>