http://aehlke.github.io/tag-it/
tag-it でフリーテキストを避けるにはどうすればよいですか? つまり、ユーザーは自動完了によって提案された文字列のみにタグを付けることができるはずです
$("#selector").tagit({
// Options
fieldName: "projects",
autocomplete: {
minLength: 2,
source: function (request, response) {
$.ajax({
url: '/xxx/xxxx',
type: 'POST',
data: {
searchKey: request.term
},
success: function (data) {
response($.map(data, function (item) {
return { label: item.Name };
}));
}
});
}
},
showAutocompleteOnFocus: false,
removeConfirmation: false,
caseSensitive: false
});