jQuery selector: Selecting a certain combination of classes when multiple exist
I have tried to do some research already and haven’t found anything, but If I’ve missed the answer, please tell me. Basically I have multiple elements with multiple classes each, but the combinations are unique. I want to select a certain combination of classes, but not other elements that have this elements in combination with others.
I would like to know if this selector exists in jQuery or if there is some other way to accomplish what I am explaining. See the example below:
When trying to log only the element with the classes
a b c, I tried using:
the output is:
I am looking for the output to be:
You could also use the attribute selector: (example)
Note that the order always has to be
a b c. Just throwing that out there as an option.