Hey there! I'm currently working on a project using Bootstrap and have a simple navbar header that contains two dropdown menus with items. However, I now need to modify it to include sub-menu items with associated content, similar to the example below. When hovering over a sub-menu item, I want to change an image to display a car related to that specific item. For instance, hovering over item 1 would show one type of car, while hovering over item 2 would show another. All of this should be contained within the sub-menu items...
This is my current code:
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle page-scroll" href="#" id="navbarDropdown" role="button"
aria-haspopup="true" aria-expanded="false">About Us</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#item1"><span class="item-text">Item 1</span></a>
<div class="dropdown-items-divide-hr"></div>
<a class="dropdown-item" href="#item2"><span class="item-text">Item 2</span></a>
</div>
</li>