"Navbar search add on BS 3"
Bootstrap 3.0.3 Snippet by yasirtaher

<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <nav class="navbar navbar-default" role="navigation"> <!-- Brand and toggle get grouped for better mobile display --> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">Brand</a> </div> <!-- Collect the nav links, forms, and other content for toggling --> <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> </ul> <div class="col-sm-3 col-md-3"> <form class="navbar-form" role="search"> <div class="input-group"> <div class="input-group-btn search-panel"> <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown"> <span id="search_concept">Filter by</span> <span class="caret"></span> </button> <ul class="dropdown-menu" role="menu"> <li><a href="#contains">Contains</a></li> <li><a href="#its_equal">It's equal</a></li> <li><a href="#greather_than">Greather than ></a></li> <li><a href="#less_than">Less than < </a></li> <li class="divider"></li> <li><a href="#all">Anything</a></li> </ul> </div> <input type="hidden" name="search_param" value="all" id="search_param"> <input type="text" class="form-control" name="x" placeholder="Search term..."> <span class="input-group-btn"> <button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button> </span> </div> </form> </div> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a> <ul class="dropdown-menu"> <li><a href="#">Action</a></li> <li><a href="#">Another action</a></li> <li><a href="#">Something else here</a></li> <li class="divider"></li> <li><a href="#">Separated link</a></li> <li class="divider"></li> <li><a href="#">One more separated link</a></li> </ul> </li> <li class="active"><a href="#">Link</a></li> <li><a href="#">Link</a></li> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"> <span class="glyphicon glyphicon-shopping-cart"></span> 7 - Items<span class="caret"></span></a> <ul class="dropdown-menu dropdown-cart" role="menu"> <li> <span class="item"> <span class="item-left"> <img src="http://lorempixel.com/50/50/" alt="" /> <span class="item-info"> <span>Item name</span> <span>23$</span> </span> </span> <span class="item-right"> <button class="btn btn-xs btn-danger pull-right">x</button> </span> </span> </li> <li> <span class="item"> <span class="item-left"> <img src="http://lorempixel.com/50/50/" alt="" /> <span class="item-info"> <span>Item name</span> <span>23$</span> </span> </span> <span class="item-right"> <button class="btn btn-xs btn-danger pull-right">x</button> </span> </span> </li> <li> <span class="item"> <span class="item-left"> <img src="http://lorempixel.com/50/50/" alt="" /> <span class="item-info"> <span>Item name</span> <span>23$</span> </span> </span> <span class="item-right"> <button class="btn btn-xs btn-danger pull-right">x</button> </span> </span> </li> <li> <span class="item"> <span class="item-left"> <img src="http://lorempixel.com/50/50/" alt="" /> <span class="item-info"> <span>Item name</span> <span>23$</span> </span> </span> <span class="item-right"> <button class="btn btn-xs btn-danger pull-right">x</button> </span> </span> </li> <li class="divider"></li> <li><a class="text-center" href="">View Cart</a></li> </ul> </li> </ul> </div><!-- /.navbar-collapse --> </nav>

Related: See More


Questions / Comments: