I've been trying to hide a class via CSS if a different class is present within the same div.
The div situation:
<div class="tripdetails">
<div class="tripavailable OR tripunavailable">
</div>
<div class="soldoutform">
</div>
</div>
With the OR part, there is either the first or second class name. If it's the first one "tripavailable", the class "soldoutform" should be hidden.
I've tried the following, but am thus far unsuccessful:
.tripavailable.soldoutform {
display: none;
}