javascript - Data-toggle and Data-target are not working as desired -


i have sample navigation bar. couldn't collapse 'data-toggle' , 'data-target' not working. please me , give suggestion if there other issue in code. here code:

<%@ page language="c#" autoeventwireup="true" codefile="default.aspx.cs" inherits="_default" %>    <!doctype html>    <html xmlns="http://www.w3.org/1999/xhtml">  <head runat="server">      <meta charset="utf-8" />      <meta name="viewport" content="width=device-width, initial-scale=1.0" />      <link rel="stylesheet" href="/css/bootstrap.min.css" />            <title>basic log in page</title>  </head>  <body>      <form id="form1" runat="server">      <div>          <div class="navbar navbar-inverse navbar-fixed-top" role="navigation">              <div class="container">                  <div class="navbar-header">                      <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">                          <span class="sr-only"></span>                          <span class="icon-bar"></span>                          <span class="icon-bar"></span>                          <span class="icon-bar"></span>                      </button>                      <a class="navbar-brand" href="default.aspx" ><span><img alt="logo" src="images/logo.png" height="30" /></span>bootstrap demo</a>                  </div>                  <div id="navbar" class="navbar-collapse collapse">                      <ul class="nav navbar-nav navbar-right">                          <li class="active"><a href="default.aspx">home</a></li>                          <li><a href="#">about</a></li>                          <li class="dropdown">                              <a href="#" class="dropdown-toggle" data-toggle="dropdown">social</a>                              <ul class="dropdown-menu">                                  <li><a href="#">facebook</a></li>                                  <li><a href="#">twitter</a></li>                                  <li><a href="#">google+</a></li>                                  <li><a href="#">instagram</a></li>                              </ul>                          </li>                      </ul>                  </div>              </div>          </div>      </div>        </form>      <script type="text/javascript" src="/js/bootstrap.js"></script>      <script type="text/javascript" src="/js/bootstrap.min.js"></script>      <script type="text/javascript" src="/js/jquery-1.12.0.min.js"></script>  </body>  </html>

i created example @ bootply , works fine. can see here bootstrap js might not loading. first add above page after bootstrap css , should fine . check here http://www.bootply.com/z2fxc4skjn


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -