Comments (2)
You need javascript to make the dropdown work. To show and hide the menu-dropdown element just toggle the open
class on li.menu
.
from bootstrap.
From http://twitter.github.com/bootstrap/assets/js/application.js:
// Dropdown example for topbar nav
// ===============================
$("body").bind("click", function (e) {
$('.dropdown-toggle, .menu').parent("li").removeClass("open");
});
$(".dropdown-toggle, .menu").click(function (e) {
var $li = $(this).parent("li").toggleClass('open');
return false;
});
from bootstrap.
Related Issues (20)
- Popover content option (passed as function) documentation issue HOT 2
- Form Validation customization HOT 2
- Adding backdrop-filter blur on navbar breaks offcanvas element HOT 4
- Accessibility problems with pagination controls HOT 6
- <code> elements ignore auto-contrasting colors HOT 3
- Carousel shows enlarged image when pressing next or previous if the carousel is wrapped in float CSS
- In the modal dialog there is no md breakpoint HOT 7
- sidebar
- Col-auto doesn't have width equal to its content when content is a nested BS grid
- const myModal = document.getElementById('myModal') doesn't work HOT 3
- SASS deprecation warnings with version 1.77.7 - Mixed declarations HOT 10
- Deprecation notices with latest Dart Sass 1.77.7 HOT 1
- Popover border overlaps arrow when placement is top in some resolutions
- Bootstrap 5.3 - fixed-top navbar versus dark themeProvide a general summary of the issue HOT 2
- last line "text -danger" replace to "text -success".
- Error Cannot read properties of undefined (reading 'backdrop')
- Regarding Border - start and end, not working! HOT 1
- 5.3.3 - class="alert alert-danger" : Doesn't show alert text color HOT 1
- License for Bootstrap examples isn't clear HOT 14
- Add modal width breakpoints as CSS Variables HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootstrap.