jQuery `hasClass()` doesn't produce any result
<p>I am simply trying to find out if the parent of the <code>A</code> (i.e. the <code>P</code>) has a class called <code>some_class</code> defined on it. I will then use the <code>true</code>/<code>false</code> result in a conditional.</p>

<p>I have a simple structure:</p>

<pre><code>&lt;div class="things"&gt;
    &lt;p class="some_class"&gt;
        &lt;a href="something"&gt;Link One&lt;/a&gt;
    &lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>And some jQuery script:</p>

<pre><code>$(function() {
    $('.things a').click(function(e) {    
        e.preventDefault();    
        alert($(e.target).parent()[0].nodeName); //works, displays "P"
        alert($(e.target).parent()[0].hasClass('some_class').toString()); //No output
        });
    });
</code></pre>

<p>The call to the second <code>alert()</code> does nothing - no alert box is displayed at all.</p>

<p>What am I doing wrong?</p>

<p>A <a href="http://jsfiddle.net/LVerN/2/" rel="nofollow">JSFiddle is here</a></p>
