如何在tokenize2中的remove事件中获取标记文本

时间:2017-07-13 11:16:11

标签: jquery tokenize2

如何知道从tokenize2控制标记中删除了哪些文本

插件链接: https://zellerda.github.io/Tokenize2/events.html

$('.tokenize-override-demo1').tokenize2();
$('.tokenize-sample-demo1').on("tokenize:tokens:remove", function (event, value, text){
   console.log("value : "+value); // value is printed
   console.log(text + "option removed"); //text is not printed,Need Text which is removed 
});

enter image description here

0 个答案:

没有答案