<div class="set">
<a href="javascript:void(0);" class="active">SAMPLE <img class="" src="/active-arrow.svg">
</a>
<div class="content">details </div>
I need to apply CSS styling to the content class. If condition is met, then { display: block}. Otherwise, { display: none;}
I attempted the following:
.set > a.active {
color: #123399;
font-family: 'lato-bold'; }
.content {
display: none; }
.set > a.active .content{
display: block;}
However, the desired results are not being achieved.