jquery hasClass multiple class selectors code example
Example 1: jquery select element with two classes
$('.class1.class2') // select element that has both class1 and class2
Example 2: 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');
}
});