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

html - Difficulties with background-image property -

visual studio code - What does the isShellCommand property actually do and how should you use it? -

ios - Segue not passing data between ViewControllers -