Prev Demo
Bootstrap
>
Dropdown-Toogle With Javascript
Next Demo
Write code here
J
|
B
|
A
<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.2/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script> </head> <body> <div class="container"> <h2>Dropdown Example</h2> <div class="dropdown"> <button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown">SN ITFunda <span class="caret"></span></button> <ul class="dropdown-menu"> <li><a href="#">DotNetFunda</a></li> <li><a href="#">TechFunda</a></li> <li><a href="#">ITFunda</a></li> <li class="divider"></li> <li><a href="#">KidsFunda</a></li> </ul> </div><br> </div> <script> $(document).ready(function () { $(".dropdown-toggle").dropdown(); }) </script> </body> </html>
Note: We DO NOT save your trial code in our database.
Output