In the following html, I have an li element with id="currency-dropdown". It's parent is a ul element with class="nav". There is a div element, id="currency", that is the adjacent sibling of the ul element. The div element has the attribute -- visibility:hidden; When the li element is hovered over, how do I target the div element and change its attribute to visibility:visible?
<div class="col-12 col-md-4" id="header-top-right-area">
<ul class="nav">
<li class="nav-item" id="currency-dropdown">
<a href="#" class="nav-link active">
USD <i class="fa fa-chevron-down"></i>
</a>
</li>
</ul>
<div id="currency" class="dropdown">
<ul class="list-unstyled">
<li>EURO</li>
</ul>
</div>
</div>
Skeletal scss:
.nav {
#currency-dropdown {
&:hover {
//When hovered over, changed #currency to visible:visible
}
}
}
#currency {
visibility:hidden;
}