javascript - html drop-down button not working -
can tell me wrong drop-down button. not working in chrome. here html code-
<!doctype html> <html lang="en"> <head> <title>iconmaker</title> <meta charset=utf-8"> <meta name= "viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/y6pd6fv/vv2hjna6t+vslu6fwyxjcftcephbnj0lyafsxtsjbbfadjzaleqsn6m" crossorigin="anonymous"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> </head> <body> <div class="jumbotron text-center"> <h1>my bootstrap page</h1> <p>resize page understand responsiveness</p> </div> <div class="container"> <div class="dropdown"> <button class="btn btn-primary dropdown-toggle" type="button" data-toggle="dropdown">post ideas <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">work 1</a></li> <li><a href="#">work 2</a></li> <li><a href="#">work 3</a></li> <li><a href="#">work 4</a></li> </ul> </div> <div class="row"> <div class="col-sm-2"> <p>if want use paypal</p> <i class="fa fa-cc-paypal" style="font-size:36px"></i> </div> <div class="col-sm-2"> <p>if want use mastercard</p> <i class="fa fa-cc-mastercard" style="font-size:36px"></i> </div> <div class="col-sm-2"> <p>if want use visa</p> <i class="fa fa-cc-visa" style="font-size:36px"></i> </div> <div class="col-sm-2"> <p>if want use google wallet</p> <i class="fa fa-google-wallet" style="font-size:36px"></i> </div> <div class="col-sm-2"> <p>if want use american express</p> <i class="fa fa-cc-amex" style="font-size:36px"></i> </div> </div> </div> </body> </html> when click on drop-down, nothing drops down. see no errors on console.i have added bootstrap.js in html. have use javascript file that?
use link
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-bvyiisifek1dgmjrakycuhahrg32omucww7on3rydg4va+pmstsz/k68vbdejh4u" crossorigin="anonymous"> instead of
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/y6pd6fv/vv2hjna6t+vslu6fwyxjcftcephbnj0lyafsxtsjbbfadjzaleqsn6m" crossorigin="anonymous"> cuz use version 4.0.0-beta in css , version in javascript
wiki
Comments
Post a Comment