jQuery - How to check if element has any of these classes

后端 未结 0 1063

Example:

How do I check if div #test has any of .a1 .a2 .a3 .a4 .a5 classes? With only one if-statment..

相关标签:
回答
  • 消灭零回复
提交回复
热议问题