I am trying to write a CSS selector that requires multiple (three criteria) to be met in order to enact an action.
$('div[class*="clickout"]')
$('div[class*="preferred"]')
$('div[class*="test"]')
Basically I want to ensure that all three conditions are met.
Chain the attribute selectors:
If you’re looking for an element with the three exact class names, like
rather than with classes with the three words as partial or whole class names, like
Then you should chain class selectors instead of attribute selectors: