How to get canceled value using Chosen

I am using the Chosen jQuery plugin and I have successfully installed it. now i want to get selected or canceled items, here are the docs:

http://harvesthq.imtqy.com/chosen/options.html

He talks about the change trigger, he sends selectand deselectas parameters, how can I access those?

eg:

$('#days').on('change', function(evt, params) {
    // alert selected val if the users selected new item
    // alert deselected val if the users deselected item
}

thanks

+4
source share
1 answer

$('#days').on('change', function(evt, params) { // can now use params.selected and params.deselected }

+6
source

All Articles