Jquery which event handle when add/remove to token input?

jquery

Solution

If you are using http://loopj.com/jquery-tokeninput/ then they have `add` `remove` callbacks documented in their home page

onAdd
A function to call whenever the user adds another token to their selections. defaut: null (demo).
onDelete
A function to call whenever the user removes a token from their selections. default: null (demo).

The syntax is

    $("#selector").tokenInput("fetch.php", {
         onAdd: function (item) {
             alert("Added " + item.name);
         },
         onDelete: function (item) {
            alert("Deleted " + item.name);
        }
   });

See demo here search for onAdd onDelete http://loopj.com/jquery-tokeninput/demo.html#onadd-ondelete

Problem

I am using tokeninput for autocomplete text box. now i want to show hide div base on token input. so in which event i could get token input values on add / remove time ?

Original source