Dropdown Box with Searchable Text

Here we have a dropdown select box, that you can type into to search the available options. No Javascript Required for this the browser does all the work. Press into the text box, and you will see all options, then if you type something it will filter them. This would be useful for large lists, or maybe lists generated from a database to make it easier to filter through.

HTML

<form>
<div class="form-group">
    <label for="SearchList">Choose your Host:</label>
    <input list="SearchThisList" id="SearchList" name="SearchList" placeholder="type here..." />
    <datalist id="SearchThisList">
  <option value="Google">
  <option value="Netlify">
  <option value="Test Word">
  <option value="Namecheap">
  <option value="Something Else">
  <option value="Moo">
  <option value="webdev">
  <option value="Eh?">

</datalist>
</div>
</form>

Demo

Welcome

This is my test area for webdev. I keep a collection of code snippits here, mostly for my reference. Also if i find a good site, i usually add it here.

❤👩‍💻🕹