jquery check if class contains text 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');