I'm actually using the plugin Typeahead from Twitter bootstrap and I would like to add a new row after the data from my server are loaded.
$('.typeahead').typeahead({
source: function (query, process) {
return $.get('/typeahead.json', { q: query }, function (data) {
return process(data);
});
}
});
Once the data are loaded I would like to add a new row with the query at the end of the dropdown.
What is the trick to do that?