I have some message elements like this...
<span class="error message">Whoops! Don't forget your name.</span>
And...
<span class="success message">All done! Thank you very much.</span>
You'll notice that two classes are being applied to a single span
element. This is valid markup. How can I select elements with two classes like this?
Note: I don't want all elements that have a class attribute containing "message". I need the elements that have both "error" and "message" (and nothing else).