1
<nav>
<div class="nav-wrapper">
  <form>
    <div class="input-field">
      <input id="search" type="search" required>
      <label for="search"><i class="material-icons">search</i></label>
      <i class="material-icons">close</i>
    </div>
  </form>
</div></nav>

does anyone know how to add dropping down suggestions when someone write letters on search box?

using Materialize CSS

Java jansen
  • 187
  • 2
  • 15
  • Possible duplicate of [How to create autocomplete form with MaterializeCss?](http://stackoverflow.com/questions/34222775/how-to-create-autocomplete-form-with-materializecss) – artem Aug 31 '16 at 03:02

1 Answers1

1

Use the autocomplete class on the input. Then initialize it with an object that contains the options.

$('input.autocomplete').autocomplete({ data: { "Apple": null, "Microsoft": null, "Google": 'http://placehold.it/250x250' } });

Refer to http://materializecss.com/forms.html

Mateo Marin
  • 265
  • 3
  • 8