I have a Bootstrap dropdown menu that is working fine. What I'd like to do is also trigger the opening of the menu by clicking on a link elsewhere on the page. (This makes sense because of what's in the menu item, etc.) The doc page says that having the link do something like $('.dropdown-toggle').dropdown()
, or maybe $('.dropdown-toggle').dropdown('toggle')
should do this, but neither is working for me. Any suggestions?
相关问题
- How to add a “active” class to a carousel first el
- dropdown <select> for list.js
- Full Clickable Accordion in Bootstrap
- There is no ViewData item with the key 'taskTy
- How to add Bootstrap 4 without Tether?
相关文章
- Make Bootstrap tab Active on the bases of URL link
- Rails: Twitter Bootstrap Buttons when visited get
- Reduce spacing between rows
- How do use bootstrap tooltips with React?
- Django: Replacement for the default ManyToMany Wid
- Need to design 8 boxes in two rows
- ASP.Net MVC 3: optgroup support in Html.DropDownLi
- Trigger a Bootstrap .collapse('toggle') vi
try
and