jquery to check has two class code example
Example: jquery hasclass multiple classes
jQuery('button').click(function(){
var hcls =jQuery('p').hasClass('class2').addClass('class2');
if(hcls == true){
alert('Yuor class is remove ');
}
else{
alert('your class is nnot remove');
}
});