SyntaxFix
Write A Post
Hire A Developer
Questions
You just had some messed up parentheses in your 2nd attempt.
var $html = $("html"); if ($html.hasClass('m320') || $html.hasClass('m768')) { // do stuff }