input-group-addon with bootstrap-select input-group-addon with bootstrap-select jquery jquery

input-group-addon with bootstrap-select


From Bootstrap docs:

Extend form controls by adding text or buttons before, after, or on both sides of any text-based <input>. Use .input-group with an .input-group-addon or .input-group-btn to prepend or append elements to a single .form-control.

You need to wrap the select and .input-group-addon in a .input-group:

<div class="input-group">  <span class="input-group-addon">Label 2</span>  <select id="lunch" class="selectpicker form-control" data-live-search="true" title="Please select a lunch ...">    <option>Hot Dog, Fries and a Soda</option>    <option>Burger, Shake and a Smile</option>    <option>Sugar, Spice and all things nice</option>    <option>Baby Back Ribs</option>    <option>A really really long option made to illustrate an issue with the live search in an inline form</option>  </select></div>

Check it out: