Bootstrap Dropdown Menu
Menu items appear on hover
1
2
3
4
.dropdown:hover .dropdown-menu {
display: block;
margin-top: 0; /* remove the gap so it doesn't close the menu */
}
Parent item is clickable
1
2
3
4
5
jQuery(function($) {
jQuery('.dropdown > a').click(function(){
location.href = this.href;
});
});
This post is licensed under CC BY 4.0 by the author.