Adding class to element after page loads prevents click
<p>I have a page that has an AJAX call. On response I add an class to one of the elements with .addClass </p>

<pre><code>$("#cq div:first-child").addClass('curCat');
</code></pre>

<p>Later in my JS code I am trying to add a click function to that element, unfortunately it does not seem to react</p>

<pre><code>$('.curCat').click(function() {
    $('#cq div').show();
});
</code></pre>

<p>I thought, that perhaps it was due to the fact that I added class after the DOM was loaded and tried using delegate() but to no avail.</p>

<p>Kinda lost at this point.</p>
