"Input with dropdown on right and button"
Bootstrap 3.2.0 Snippet by SeanBannister

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<link href="//netdna.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//netdna.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="container">
<div class="row">
<div class="input-group input-group-lg">
<!-- Input -->
<input type="text" name"search" class="form-control" placeholder="Search term...">
<!-- Dropdown -->
<div class="input-group-btn">
<button type="button" class="btn btn-default" data-toggle="dropdown">Advanced <span class="caret"></span></button>
<ul class="dropdown-menu pull-left" role="menu">
<li><a href="#">Option 1</a></li>
<li><a href="#">Option 2</a></li>
<li><a href="#">Option 3</a></li>
<li class="divider"></li>
<li><a href="#">Option 4</a></li>
</ul>
<button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
</div>
</div>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
body {
margin: 20px;
}
.input-group-btn .dropdown-toggle:not(:last-of-type) {
border-radius: 0 !important;
}
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: