javascript - TypeAhead autocomplete not working -


i new typeahead autocomplete, read docs , started work, but, autocomplete not working

what did is

$('#homesearchbox').typeahead({     order: "desc",     source: {         data: window.hotelnamearr     },     // source:  hotelnamearr,     callback: {         oninit: function (node) {             console.log('typeahead initiated on ' + node.selector);         }     } }); 

hotelnamearr array is

["xxxxxxxxx, xxxxx", "yyyyyyy,yyyyyyyyyy", "zzzzzzzz - zzzzz - zzz, mmmmm", "cccccccc,rrrrrrrrrr", "cccccccc, ccccccccc"] 

is there missing ?, in advance


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -