syntax to check wheather this class is present in this container if present then further conditions using jquery code example
Example 1: jquery hasclass
$( "#mydiv" ).hasClass( "foo" )
Example 2: jquery hasclass
jQuery(Selector).hasClass('class_name');