chaining classes for .hasClass();
<p>Require the following to work:</p>

<p><a href="http://jsfiddle.net/xavi3r/4J583/" rel="nofollow">http://jsfiddle.net/xavi3r/4J583/</a></p>

<pre><code>&lt;div class="cmAuto active a default"&gt;&lt;/div&gt;
$('body').append("&lt;div&gt;" + $('div').hasClass('.active.default') + "&lt;/div&gt;");
</code></pre>

<p>Output should be TRUE, but it's returning false.</p>

<p>EDIT:</p>

<p>For those looking for the correct code:</p>

<p><a href="http://jsfiddle.net/xavi3r/4J583/8/" rel="nofollow">http://jsfiddle.net/xavi3r/4J583/8/</a></p>
