When you add or remove item, change event of underlying select element should be fired.
Just add following line to _setSelected method:
that.element.trigger('change');
and for draggable elements define stop function:
stop: function(event, ui) {that.element.trigger('change');},
When you add or remove item, change event of underlying select element should be fired. Just add following line to _setSelected method: that.element.trigger('change');
and for draggable elements define stop function: stop: function(event, ui) {that.element.trigger('change');},
thanks!