I am using this jquery ui plugin https://github.com/aehlke/tag-it for tagging.
I create tag like this
$("#Input").tagit("createTag", "ABC");
What i want is add some text to the label based on the value. For example:
ABC-Normal
DEF-Member
beforeTagAdded: function (event, ui) {
var label = $('#Input').tagit('tagLabel', ui.tag);
if (label == "ABC") {
...
} else {
}
},
Here is a demo using
preprocessTag