1
<div class="row">
  <div class="col-11">
    <input type="password" class="form-control"  placeholder="Your lastname" id="pwd">
  </div>
  <div class="col-1">
    <div class="dropdown">
      <button class="dropdown-toggle" type="button" id="about-us" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
      </button>
      <div class="dropdown-menu" aria-labelledby="">
        <a class="dropdown-item" href="#">Male</a>
        <a class="dropdown-item" href="#">Female</a>
      </div>
    </div>
  </div>
</div>

I want to get drop down list inside input text field like in the image using bootstrap,but i am not able to get it, though i tried hard, And sorry if seems silly question as i am new to designing ,your help would be much appreciated, Thanks in advance.

Fabian S.
  • 2,441
  • 2
  • 24
  • 34

1 Answers1

0

I'm not sure what you mean by this but i think what you're looking for is the following:

 <select>
  <option value="value1">value1</option>
  <option value="value2">value2</option>
  <option value="value3">value3</option>
  <option value="value4">value4</option>
</select> 

Read up on it here.

Baksteen-13
  • 145
  • 2
  • 13