javascript - How to make this bootstrap nav submenu always open? -
i have code make bs nav, don't understand how make submenu open without clicking menu name.
this code:
http://jsfiddle.net/6hrmodok/2/
and please answer question new code.
.gw-nav-list>li.always-active>a, .gw-nav-list>li.always-active>a:hover, .gw-nav-list>li.always-active>a:focus, .gw-nav-list>li.always-active>a:active { background-color: #fff; color: #2574a9; font-weight: bold; font-size: 13px; } .gw-nav-list>li.always-active:before { display: inline-block; content: ""; position: absolute; left: 0px; top: -1px; bottom: 0; z-index: 1; border: 2px solid #2574a9; border-width: 0 0 0 5px; } .always-active .gw-submenu, .gw-nav-list>li.always-active .gw-submenu { display:block; }
and javascript;
$('.gw-nav > li:not(.always-active) > a').click(function () { ....
Comments
Post a Comment