if the div has the class set attribute to false in jquery code example
Example 1: jquery hasclass
$( "#mydiv" ).hasClass( "foo" )
Example 2: jquery hasclass
jQuery(Selector).hasClass('class_name');
$( "#mydiv" ).hasClass( "foo" )
jQuery(Selector).hasClass('class_name');