How do I use multiple is() selectiors?
jquery, jquery-selectors
Solution
`.first, .second, .third` is a valid selector:
$(this).parent().is('.first, .second, .third')
Problem
I am trying to write an `if` statement that checks to see a node's parent is one of three selectors via `is()`, however `is()` doesn't support multiple selectors as arguments. How can I accomplish something similar to this?: ``` if ($(this).parent().is('.first','.second','.third')) { //do this thing } else { //do this other thing } ```