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

后端 未结 0 1538
情书的邮戳
情书的邮戳 2021-02-11 15:44

Example:

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

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