how to get class of event object
<p>I'm trying to check if the li element that is clicked has the 'update' class.</p>

<pre><code>$('li.category').live('click', function(event)
{
    //my code here
});
</code></pre>

<p>I tried:</p>

<pre><code>if (($(event.target).hasClass('update')))

if ($(this).hasClass('update'))
</code></pre>

<p>which both always return false.</p>

<p>How can I do this?</p>
