Javascript 将js结果键入另一个div

Javascript 将js结果键入另一个div,javascript,jquery,typeahead,typeahead.js,twitter-typeahead,Javascript,Jquery,Typeahead,Typeahead.js,Twitter Typeahead,我使用的是typeahead.js v0.10.1,我想知道是否有办法让搜索结果显示在另一个div中而不是下拉列表中 html: 这个插件有点有限。我想这会更容易 <div class="col-sm-6 films"> <input class="typeahead form-control" type="text"/> </div> <div class="results">Have the results appear in here

我使用的是typeahead.js v0.10.1,我想知道是否有办法让搜索结果显示在另一个div中而不是下拉列表中

html:


这个插件有点有限。我想这会更容易
<div class="col-sm-6 films">
   <input class="typeahead form-control" type="text"/>
</div>
<div class="results">Have the results appear in here</div>
var films = new Bloodhound({
     datumTokenizer: function (d) {
         return Bloodhound.tokenizers.whitespace(d.value);
     },
     queryTokenizer: Bloodhound.tokenizers.whitespace,
     limit: 10,

     local: [{
         "year": "1961",
             "value": "West Side Story",
             "tokens": [
             "West",
             "Side",
                 "Story"]
     }, {
         "year": "1962",
             "value": "Lawrence of Arabia",
             "tokens": [
             "Lawrence",
             "of",
             "Arabia"]
     }, {
         "year": "1963",
             "value": "Tom Jones",
             "tokens": [
             "Tom",
             "Jones"]
     }]
 });

 films.initialize();

 $('.films .typeahead').typeahead(null, {
     name: 'film',
     displayKey: 'value',
     source: films.ttAdapter()
 })