title: Multiple airport autocomplete airport inputs on a single page
body: <p>Here is my code example im currently working on. (i needed an exmaple of an autocomplete input for only airports) this is forked from someone on codepen, so credit on their behalf. </p>
  
  <p>What it currently does?
  The code curently autocompletes the airport code based on the city you input into the field. This is the expected behaviour and is fine.</p>
  
  <p>What i am currently trying to achieve ?
  I am now trying to add a second input (id name of autocomplete2) field to behave the exact same. So i can simple add 2 seperate airports, 1 in each input.</p>
  
  <p>I have tried adding adding the following <code>var bc = $('#autocomplete2')</code> and using <code>var bc</code> thorugh the code but i am getting lost when it comes to the bottom of the code </p>
  
  <pre><code>function search(e) {
    if (e.which === 38 || e.which === 13 || e.which === 40) {
    return;
  }
  
  if (ac.val().length &gt; 0) {
    results = _.take(fuse.search(ac.val()), 7);
    numResults = results.length;
  
    var divs = results.map(function(r, i) {
      return '&lt;div class="autocomplete-result" data-index="'+ i +'"&gt;'
         + '&lt;div&gt;&lt;b&gt;'+ r.iata +'&lt;/b&gt; - '+ r.name +'&lt;/div&gt;'
         + '&lt;div class="autocomplete-location"&gt;'+ r.city +', '+ r.country +'&lt;/div&gt;'
           + '&lt;/div&gt;';
     });
  
    selectedIndex = -1;
    list.html(divs.join(''))
    .attr('data-highlight', selectedIndex);
  
  } else {
      numResults = 0;
      list.empty();
    }
  }
  </code></pre>
  
  <p>I have reverted my changes and gone back to a single input for the time being. </p>
  
  <p><code>https://codepen.io/anon/pen/vrvgKQ?editors=0010</code></p>
  
  <p>EDIT </p>
  
  <pre><code>https://codepen.io/eyecandy91/pen/JZwrqy?editors=0010
  </code></pre>
  
  <p>Changing to a class allows me to use multiple inputs but now theres a issues with the dropdown when there is double inputs &amp; double inputs on each class. Codepend updated. </p>