I've been working on a multi-level dropdown menu. It seems like there's a dropdown menu inside another dropdown menu. However, when I click on the inner dropdown menu, it doesn't open to the right as expected; instead, it opens below the menu. I'd like the inner dropdown menu to show up on the right side, creating a staircase effect. How can I fix this problem?
Here is an excerpt of my code:
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">E-magazine
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li class="dropdown-submenu">
<li><a href="../Home/Emag">Valarum Vinnarasu</a></li>
<li><a href="#">The Throne</a></li>
</li>
</ul>
</li>
<li><a href="../Home/childrenhome">Children Home</a></li>
</ul>
</li>