I have a website with a mega menu. When I click on "option 1", I want to show the list-1 by setting display: block. If I click on "option 2", I need to hide list-1 by setting display: none and show list-2 by setting display: block.
Below is an example of how the mega menu is structured:
<div>
<ul>
<li class="option-1"><a>option 1</a></li>
<li class="option-2"><a>option 2</a></li>
</ul>
<ul class="list-1">
<li>option</li>
<li>option</li>
</ul>
<ul class="list-2">
<li>option</li>
<li>option</li>
</ul>
</div>
Is there a way to achieve this functionality using just SCSS or CSS?