title: How to add dropdown list with textbox in bootstrap that select the option from dropbox
body: <p>I need to add dropdown list within textbox that should select the option from the list.</p>
  
  <p>I found the html to but its not select the option, but redirecting to page.
  The html code is below.</p>
  
  <pre><code>&lt;div class="form-group"&gt;
   &lt;div class="input-group"&gt;
    &lt;input type="text" class="form-control"&gt;
    &lt;div class="input-group-btn"&gt;
     &lt;button type="button" class="btn btn-default dropdown-toggle" data- toggle="dropdown"&gt;Domain&lt;span class="caret"&gt;&lt;/span&gt;&lt;/button&gt;
     &lt;ul class="dropdown-menu" role="menu"&gt;
      &lt;li&gt;&lt;a href="#"&gt;@gmail.com&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;@yahoo.com&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;@hotmail.com&lt;/a&gt;&lt;/li&gt;
     &lt;/ul&gt;
    &lt;/div&gt;
   &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>