[FEATURE REQUEST] Is there a way to get this? selectionAdded(elem, data) / selectionRemoved(elem, data)

mekn's Avatar


15 Mar, 2011 10:44 PM

So it is faster to retrieve information, even when you need some hidden data, like the tag ID, or something.

Is there a way to get this?


  1. 1 Posted by Lee on 16 Mar, 2011 01:44 PM

    Lee's Avatar

    I second this!

  2. 2 Posted by JasonJ on 03 May, 2011 04:01 PM

    JasonJ's Avatar

    This was a surprisingly simple change to make and I am almost surprised it wasn't added in the original build. In any case, the attached file contains the call changes to include the data added, removed, and clicked. In addition, I had made one other change, adding in a property called, "forceListSelection" which forces the selection to be something that was specifically on the list, rather than allowing freetext addition of items.

  3. 3 Posted by DMan on 10 Jun, 2011 07:42 AM

    DMan's Avatar

    @JasonJ I have tried using your version of the plugin to give the ability to retrieve data from selectionRemoved but I guess I am doing something wrong.

    Should I be able to retrieve data doing the following:

    selectionRemoved: function(data){ alert(data); }

    When I do use the above all I get is [object Object]

    Does anyone know how to remove database entries using selectionRemoved?

    Thanks in advanced.

  4. 4 Posted by Jason Janofsky on 10 Jun, 2011 12:56 PM

    Jason Janofsky's Avatar


    If you have object object you are all set, however you need to use
    object property notation to get at the right item. Something like

    If you are using firebug or another JavaScript debugger, put the
    keyword "debugger;" right inside your removed event. From there, when
    you hit that event, your firebug will trigger. Once you have it
    triggered, add a watch for the data variable and its properties and
    values will appear for you. If this doesn't make sense, look up
    JavaScript debugging and spend some time with it... It will change
    your coding life.

    Good luck!

    Sent from my iPhone

    On Jun 10, 2011, at 12:42 AM, "DMan"
    <[email blocked]>

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac