I have a simple if statement as such:
if ($(\'html\').hasClass(\'m320\')) { // do stuff }
This works as expected. However, I want to add
You could use is() instead of hasClass():
is()
hasClass()
if ($('html').is('.m320, .m768')) { ... }