Bootstrap 3.3 not working moodal link in dropdown menu.
<ul class="dropdown-menu" role="menu">
<li><a href="#" data-toggle="modal" data-target="#new-list">Add New Link</a>
If I remove this line from js modal works perfect, but dropdown menu collapses after click. Dropdown menu must be opened.
$('.dropdown-menu').click(function(e) {
e.stopPropagation();
});
This is what you should do to make modal show in dropwdown:
Demo: http://jsfiddle.net/wkc5md23/8/
Remove the jQuery function
$('.dropdown-menu').click
and make sure the dropdown menu is shown like this:HTML
CSS
Solution 1. Purely CSS, show dropdown on hover:
Solution 2. Just jQuery, show dropdown by click:
Use a CSS class to show the dropdown:
And do this with jQuery: