twitter/typeahead.js

Add an example for limited suggestions

Opened this issue · 0 comments

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.