Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #JQuery #multiple #values #statement
ADD COMMENT
Topic
Name
4+4 =