Just tried the excellent Tag-It! plug-in for jquery (http://aehlke.github.com/tag-it/), but I can\'t get it to work how I would like.
I have an object list like this:
The easiest way I've found to solve this problem is to change this line in the tag-it Javascript source:
that.createTag(ui.item.value);
to
that.createTag(ui.item.label);
This is part of the Autocomplete section of code starting on line 216 in my editor:
// Autocomplete.
if (this.options.availableTags || this.options.tagSource) {
this._tagInput.autocomplete({
source: this.options.tagSource,
select: function(event, ui) {
// Lots of comments here
if (that._tagInput.val() === '') {
that.removeTag(that._lastTag(), false);
}
that.createTag(ui.item.value);
value.
return false;
}
});
}