jquery if has one of multiple classes code example
Example 1: JQuery .hasClass for multiple values in an if statement
var $html = $("html");
if ($html.hasClass('m320') || $html.hasClass('m768')) {
// do stuff
// https://stackoverflow.com/questions/10559153/jquery-hasclass-for-multiple-values-in-an-if-statement
}
Example 2: JQuery .hasClass for multiple values in an if statement
if ($('html').is('.m320, .m768')) { ... }
//https://stackoverflow.com/questions/10559153/jquery-hasclass-for-multiple-values-in-an-if-statement