aehlke / tag-it

A jQuery UI plugin to handle multi-tag fields as well as tag suggestions/autocomplete.
http://aehlke.github.com/tag-it/
MIT License
2.48k stars 825 forks source link

Get custom data from tag #405

Closed aconital closed 6 years ago

aconital commented 6 years ago

I have overwritten the autocomplete.source and I would like to attach custom data, aside from label & value, to the tags. I would like to set something like data-id since I don't want the value (which after select turns into the tag) to be id. Is that possible with this library?