Line 14: | Line 14: | ||
</head> | </head> | ||
<body> | <body> | ||
− | + | <div class="dropdown"> | |
− | + | <a class="dropdown-toggle" id="dropdownMenu1" href="#">Dropdown trigger</a> | |
− | + | <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1"> | |
− | + | <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Action</a></li> | |
− | + | <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Another action</a></li> | |
− | + | <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Something else here</a></li> | |
− | + | <li role="presentation" class="divider"></li> | |
− | + | <li role="presentation"><a role="menuitem" tabindex="-1" href="#">Separated link</a></li> | |
− | + | </ul> | |
− | + | </div> | |
− | + | <script src="http://code.jquery.com/jquery-1.10.2.js"></script> | |
− | + | <script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.js"></script> | |
− | + | <script> | |
− | + | $(document).ready(function() { | |
− | </ | + | $("a.dropdown-toggle").click(function(ev) { |
− | + | $("a.dropdown-toggle").dropdown("toggle"); | |
− | <script> | + | return false; |
− | $(document).ready(function(){ | + | }); |
− | + | $("ul.dropdown-menu a").click(function(ev) { | |
− | }); | + | $("a.dropdown-toggle").dropdown("toggle"); |
− | </script> | + | return false; |
+ | }); | ||
+ | }); | ||
+ | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 15:57, 20 July 2016