1
My dropdown menu doesn’t work.
<div class="btn-group">
<button type="button" class="btn btn-warning">Menu Dropdowb</button>
<button type="button" class="btn btn-warning dropdown-toggle" data-toggle="dropdown" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Submenu1</a></li>
<li><a href="#">Submenu2</a></li>
<li><a href="#">Submenu3</a></li>
<li class="divider"></li>
<li><a href="#">Submenu4</a></li>
</ul>
</div>
<script type="text/javascrip">
$('.dropdown-toggle').click(function(e) {
e.preventDefault();
e.stopPropagation();
return false;
});
$('.dropdown-menu').click(function(e) {
e.preventDefault();
e.stopPropagation();
return false;
});
$(document).ready(function () {
$('.dropdown-toggle').dropdown();
});
</script>
How to drop HTML?
– PauloHDSousa
@Paulohdsousa. HTML does not fit. What I put was the dropdown and javascipt activation. Thanks.
– fabricio_wm
Please create a code snippet, playing the problem, so that it is easier to help you. Also add a print of your screen if you have a problem with the presentation. Add information about which browser you’re using, which system, so we’ll have more context to give a more assertive response.
– Miguel Angelo
try using https://jsfiddle.net/ to get a real example so we can help you quickly.
– Luan Fagundes