Aymen Kanzari
Aymen Kanzari

Reputation: 2023

Add input text in select option dropdown

I would like to know how to add input text in the bottom to select dropdown.

<select class="form-control">
    <option>1</option>
    <option>2</option>
    <option>3</option>
    <option>
        <input type="text" placeholder="text"/>
    </option>
  </select>

enter image description here

Upvotes: 1

Views: 1084

Answers (1)

Dulanjaya Tennekoon
Dulanjaya Tennekoon

Reputation: 2508

You may come up with a typeahead. Typeahead has the option to add what you type as a new item.

You can create your own component or you may use an existing one.

Upvotes: 1

Related Questions