Bootstrap dropdown menu not working, button only displays -
i've seen couple topics this, still unable working. button dropdown appears correctly when click show list of dropdowns, directs me "this page can't displayed".
this code:
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <!-- set viewport responsive site displays correctly on mobile devices --> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>bootstrap 3 responsive design tutorial | revillweb.com</title> <!-- include bootstrap css --> <link href="includes/bootstrap/css/bootstrap.min.css" rel="stylesheet"> <link href="includes/style.css" rel="stylesheet"> </head> <body> <!-- body page content --> <div class="dropdown"> <a id="dlabel" role="button" data-toggle="dropdown" data-target="#" href="/page.html"> dropdown <span class="caret"></span> </a> <ul class="dropdown-menu" role="menu" aria-labelledby="dlabel"> <li> apple </li> <li> banana </li> <li> cherry </li> </ul> </div> <!-- include jquery , bootstrap js plugins --> <script src="includes/jquery/jquery-2.1.0.min.js"></script> <script src="includes/bootstrap/js/bootstrap.min.js"></script> </body> </html> i fixed changing:
<script src="includes/jquery/jquery-2.1.0.min.js"></script> <script src="includes/bootstrap/js/bootstrap.min.js"></script> to
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> but wanted use static paths instead of sources located online. checked paths correct able bootstrap tutorial same paths. in advance!
the version of local jquery 2.1.0. version getting google site 1.11.1.
download latest 1.11.x version , use locally. make setup same 1 tested.
the rest fyi
from jquery site (with emphasis):
jquery 2.x has same api jquery 1.x, does not support internet explorer 6, 7, or 8.
since ie 8 still relatively common, we recommend using 1.x version unless no ie 6/7/8 users visiting site.
for other details see jquery 1.11 , 2.1 released
Comments
Post a Comment