The solution to this question is almost the same as the question in your link. You need to add CSS for the pseudo-selector: hover, which will display a dropdown. A hovering element should include both a button and a drop-down list. In the example below, I added a class btn-hoverto the button group to act as my hover selector.
<div class="btn-group btn-hover">
<button class="btn dropdown-toggle" data-toggle="dropdown" href="#">
Action
<span class="caret"></span>
</button>
<ul class="dropdown-menu">
<li><a href="#">Test</a></li>
<li><a href="#">Test 2</a></li>
</ul>
</div>
CSS
div.btn-group:hover ul.dropdown-menu{
display: block;
}
div.btn-group ul.dropdown-menu{
margin-top: 0px;
}
source
share