Require the following to work:
http://jsfiddle.net/xavi3r/4J583/
<div class="cmAuto active a default"></div>
$('body').append("<div>" + $('div').hasClass('.active.default') + "</div>");
Output should be TRUE, but it’s returning false.
EDIT:
For those looking for the correct code:
hasClasstakes a single classname.You should use
.is, which takes a selector (which can contain multiple classnames).