harvesthq/chosen — Issue #430: No way to get selected order from multiple selects
Author: sporkd
Created: 2012-01-05 23:11:39+00:00
State: open

This might be similar to another issue, but I don't think it was explained well, or fully understood: https://github.com/harvesthq/chosen/pull/197

When you select multiple options on a mulit-select, the chosen UI lines them up in the order you select them. This is fine. The problem is when you get the value of the select box with jQuery, it will always be in the same order that the select options were first rendered in. That's to be expected, but probably not what you want if you're building a client side JS app. More often you want to use the most recent item added or removed to do something with.

The ideal solution would be a new method on the select that gives you a list of selected values in the order that chosen displays them (i.e. `$("select").chznVal()` or something). Or possibly `added` and `removed` events that will give you the value of just the option selected or deselected. Other ideas?

Here is another related ticket: https://github.com/harvesthq/chosen/issues/401