twitter / typeahead.js

typeahead.js is a fast and fully-featured autocomplete library
http://twitter.github.io/typeahead.js/
MIT License
16.52k stars 3.21k forks source link

Add an example for limited suggestions #1771

Open suchoss opened 4 years ago

suchoss commented 4 years ago

Could you please add some example how to correctly work with two inputs where first input is limiting suggestion results of second input?

E.g.

<div id="the-basics">
  <input class="limitation" type="text" placeholder="States of USA">
  <input class="typeahead" type="text" placeholder="Cities of state">
</div>

or even better example might be:

<div id="the-basics">
  <input class="typeahead-state" type="text" placeholder="States of USA">
  <input class="typeahead-cities" type="text" placeholder="Cities of state">
</div>

Many thanks.