2
I have a page index.html
that the dropdown menu feature works normally, but when I migrated to Asp.net stopped working.
I’m using a page Default.aspx
who inherits from the masterpage.master
.
<div class="btn-group pull-right">
<a href="Default.aspx" class="btn btn-primary">Home</a>
<div class="btn-group">
<a href="QuemSomos.aspx" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">Quem Somos</a>
<button class="btn btn-primary dropdown-toggle" data-toggle="dropdown">
<span class="caret"></span>
</button>
<ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu">
<li><a href="#">Certificações</a></li>
<li><a href="#">Alianças Estratégicas</a></li>
</ul>
</div>
</div>
Thanks for trying to help, Alan. I have another feature on the same page that works, but this feature doesn’t work. I would like to try the third option, but I don’t know how to do it. Thanks.
– fabricio_wm
How do I test the 3rd option? Thanks.
– fabricio_wm
Hello, Fabricio. You probably have some jquery code enabled in the event Document.ready. If not, put the snippet below before closing the body tag (</body>): <script> $(Document). ready(Function(){ $('.dropdown-toggle').dropdown(); }); </script>
– Alan R. Soares
It worked Alan. Thank you very much. God bless you.
– fabricio_wm