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
Post a Comment