Пожалуйста, ознакомьтесь с кодом ниже
var elt = $('input'); elt.tagsinput({ itemValue: 'value', itemText: 'text', freeInput: true, typeaheadjs: { name: 'cities', displayKey: 'text', source: cities.ttAdapter() } });