jquery hasClass one or two code example
Example 1: jQuery hasClass() - check for more than one class
element.is('.class1, .class2')
// works, but it's 35% slower than
element.hasClass('class1') || element.hasClass('class2')
//https://stackoverflow.com/questions/2214952/jquery-hasclass-check-for-more-than-one-class
Example 2: 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
}