php - what is wrong with my bootstrap drop down menu? -
whenever click on item has drop down, doesnt work... know why? first time using php , trying inventory system... have no idea problem here code
<!doctype html> <html> <head> <title>servicio de manejo de inventarios</title> <!-- bootstrap --> <link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap.min.css"> <!-- bootstrap theme --> <link rel="stylesheet" type="text/css" href="assets/bootstrap/css/bootstrap-theme.min.css"> <!-- font awesome --> <link rel="stylesheet" type="text/css" href="assets/font-awesome/css/font-awesome.min.css"> <!-- custom css --> <link rel="stylesheet" type="text/css" href="custom/css/custom.css"> <!-- datatables--> <script type="text/javascript" scr="assets/plugins/datatables/datatables.min.css"></script> <!-- file input --> <script type="text/javascript" scr="assets/plugins/fileinput/css/fileinput.min.css"></script> <!-- jquery --> <script type="text/javascript" scr="assets/jquery/jquery.min.js"></script> <!-- jqueryui --> <link rel="stylesheet" type="text/css" href="assets/jquery-ui/jquery-ui.min.css"> <script type="text/javascript" scr="assets/jquery-ui/jquery-ui.min.js"></script> <!-- bootstrap js --> <script type="text/javascript" scr="assets/bootstrap/js/bootstrap.min.js"></script> </head> <body> <nav class="navbar navbar-default navbar-static-top"> <div class="container-fluid"> <!-- brand , toggle grouped better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">brand</a> </div> <!-- collect nav links, forms, , other content toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li id="navdashboard"><a href="index.php"> <i class="glyphicon glyphicon-list-alt"></i> dashboard </a> </li> <li id="navbrand"><a href="brand.php"> <i class="glyphicon glyphicon-btc"></i> marca </a> </li> <li id="navcategories"><a href="categories.php"> <i class="glyphicon glyphicon-th-list"></i> categoria </a> </li> <li class="dropdown" id="navorder"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="glyphicon glyphicon-shopping-cart"> </i> ordenes <span class="caret"></span></a> <ul class="dropdown-menu"> <li id="topnavaddorder"><a href="orders.php?o=add"><i class="glyphicon glyphicon-plus"> </i>agregar orden</a></li> <li id="topnavmanageorder"><a href="orders.php?o=manord"> <i class="glyphicon glyphicon-edit"> </i>administrar ordenes</a></li> </ul> </li> <li id="navreport"><a href="report.php"> <i class="glyphicon glyphicon-check"></i> reporte </a> </li> </ul> <ul class="nav navbar-nav navbar-right" id="navsetting"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="glyphicon glyphicon-user"></i> <span class="caret"></span></a> <ul class="dropdown-menu"> <li id="topnavsetting"><a href="setting.php"><i class="glyphicon glyphicon-wrench"></i>setting</a></li> <li id="topnavlogout"><a href="logout.php"><i class="glyphicon glyphicon-log-out"></i>logout</a></li> </ul> </li> </ul> </div><!-- /.navbar-collapse --> </div><!-- /.container-fluid --> </nav> <!-- file input --> <script type="text/javascript" scr="assets/plugins/fileinput/js/plugins/piexif.min.js"></script> <!--se supone que va "canvas-to-blog.min.js" --> <script type="text/javascript" scr="assets/plugins/fileinput/js/plugins/srotable.min.js"></script> <script type="text/javascript" scr="assets/plugins/fileinput/js/plugins/purify.min.js"></script> <script type="text/javascript" scr="assets/plugins/fileinput/js/fileinput.min.js"></script> <!-- datatables js--> <script type="text/javascript" scr="assets/plugins/datatables/datatables.min.js"></script> </body> </html>
because href attribute of elements has dropdown set "#". resolve issue, give valid link example <a href="http://google.com" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"> <i class="glyphicon glyphicon-user"></i> <span class="caret"></span></a>
Comments
Post a Comment