SyntaxFix
Write A Post
Hire A Developer
Questions
You can do this way:
if($(selector).filter('.class1, .class2').length){ // Or logic } if($(selector).filter('.class1, .class2').length){ // And logic }