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 () {       .... 

updated fiddle


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -