javascript - Accordion inside Bootstrap navbar dropdown -
please refer: apec energy
in right corner, there user icon. on clicking it, can see accordion in dropdown menu. how can achieved?
i have put jsfiddle basic code. removed trials of accordion because whatever tried breaks code.
my code navbar:
<!-- navigation --> <div id="gxcpl" class="navbar navbar-default navbar-fixed-top" role="navigation"> <div class="container"> <div class="navbar-header"> <a class="navbar-brand hidden-lg hidden-md" href="#">living ahimsa</a> <a class="hidden-sm hidden-xs" href="#"> <img class="gxcpl-logo" src="assets/images/logo.png" /> </a> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-menubuilder"> <span class="sr-only">toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> </div> <div class="collapse navbar-collapse navbar-menubuilder"> <ul class="nav navbar-nav navbar-left"> <li class="active"><a href="/">home</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> bio homes</a> <ul class="dropdown-menu" role="menu"> <li><a href="#">introduction</a></li> <li><a href="#">innovation</a></li> <li><a href="#">services</a></li> <li><a href="#">development</a></li> <li><a href="#">future</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> bio energy</a> <ul class="dropdown-menu" role="menu"> <li><a href="#">bio heating</a></li> <li><a href="#">bio lighting</a></li> <li><a href="#">bio air</a></li> <li><a href="#">bio frequency</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> bio water</a> <ul class="dropdown-menu" role="menu"> <li><a href="#">whole house filter</a></li> <li><a href="#">reverse osmosis</a></li> <li><a href="#">portable filters</a></li> <li><a href="#">portable storage</a></li> <li><a href="#">rain water storage</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> bio garden</a> <ul class="dropdown-menu" role="menu"> <li><a href="#">bio grow system</a></li> <li><a href="#">bio watering system</a></li> <li><a href="#">indoor growing</a></li> <li><a href="#">organic seeds</a></li> <li><a href="#">organic plants</a></li> </ul> </li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> bio health</a> <ul class="dropdown-menu" role="menu"> <li><a href="#">core health</a></li> <li><a href="#">oils</a></li> <li><a href="#">raw foods</a></li> <li><a href="#">natural supplements</a></li> <li><a href="#">protien</a></li> </ul> </li> </ul> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa fa-angle-down"></i> <i class="fa fa-user-o"></i></a> <ul class="dropdown-menu" role="menu"> <li><a href="#">shopping basket</a></li> <li><a href="#">contact us</a></li> <li><a href="#">call request</a></li> <li><a href="#">account settings</a></li> <li><a href="#">login/register</a></li> </ul> </li> </ul> </div> </div> </div> <!-- navigation -->
your jsfiddle seems have accordion menu. don't understand, behaviour missing?
Comments
Post a Comment