check the class name 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');