How to print value of .hasClass via console?
<p>using the Firebug console I'm trying to test whether this code is working:</p>

<pre><code>$(window).bind("load", function() {
    $('#tab1link').click(function() {
        $('#tab2').hide();
        $('#tab2').removeClass('selected');
        $('#tab1').show();
        $('#tab1').addClass('selected');
    });

    $('#tab2link').click(function() {
        $('#tab1').hide();
        $('#tab1').removeClass('selected');
        $('#tab2').show();
        $('#tab2').addClass('selected');
    });

});
</code></pre>

<p>but this:</p>

<pre><code>console.log($('#tab2').hasClass('selected'))
</code></pre>

<p>returns the error:</p>

<pre><code> TypeError: $("#tab2").hasClass is not a function { message="$("#tab2").hasClass is not a function",  more...}
</code></pre>

<p>Does anyone know why the above console command is incorrect? (Not a jQuery expert...)</p>

<p>Based on the link below, I think it should work...
<a href="http://api.jquery.com/hasClass/" rel="nofollow">http://api.jquery.com/hasClass/</a></p>

<p>Thanks!</p>
