Skip to main content
Formatação de código
Fonte Link
Miguel Angelo
  • 29,2mil
  • 4
  • 85
  • 114

Meu menu dropdown não funciona.

<div class="btn-group">

Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  •   <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>
    

    Meu menu dropdown não funciona.

    <div class="btn-group">
    

    Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  •     <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>
    

    Meu menu dropdown não funciona.

    <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>
    
    adicionou 94 caracteres ao conteúdo
    Fonte Link
    PauloHDSousa
    • 3,5mil
    • 17
    • 36

    Meu menu dropdown não funciona.

    <div class="btn-group">
    

    Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  •     <script type="text/javascrip">
    

    $('.dropdown-toggle').click(function(e) { e.preventDefault(); e.stopPropagation();

    $('.dropdown-toggle').click(function(e) {
        e.preventDefault();
        e.stopPropagation();
    
        return false;
    

    }); $('.dropdown-menu').click(function(e) { e.preventDefault(); e.stopPropagation();

    });
    $('.dropdown-menu').click(function(e) {
        e.preventDefault();
        e.stopPropagation();
    
        return false;
    });
     $(document).ready(function () {
             $('.dropdown-toggle').dropdown();
         }); 
    
    </script>
    

    }); $(document).ready(function () { $('.dropdown-toggle').dropdown(); });

    Meu menu dropdown não funciona.

    <div class="btn-group">
    

    Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  • <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(); });

    Meu menu dropdown não funciona.

    <div class="btn-group">
    

    Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  •     <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>
    
    Fonte Link
    fabricio_wm
    • 1,1mil
    • 6
    • 16
    • 46

    Menu Dropdown do bootstrap não está funcionando

    Meu menu dropdown não funciona.

    <div class="btn-group">
    

    Menu Dropdowb Toggle Dropdown

  • Submenu1
  • Submenu2
  • Submenu3
  • Submenu4
  • <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(); });