I have some code like this:
if ($(event.target).is('.class1') || $(event.target).is('.blab') || $(event.target).is('.foo') || $(event.target).is('.cbncvbn') || $(event.target).is('.dfghdfgh') || $(event.target).is('.tryrty')) {
// Do something
}
Is there a more succinct way to write this?
PS: I know there are better ways to do the same thing, but this question is about the syntax of the conditions.
Thanks.
Well, jQuery uses CSS3 selectors you can just as well do this:
The match applies to any, as it does with CSS rules