if ($('html').is('.m320, .m768')) { ... } //https://stackoverflow.com/questions/10559153/jquery-hasclass-for-multiple-values-in-an-if-statement