bootstrap-multiselect icon indicating copy to clipboard operation
bootstrap-multiselect copied to clipboard

Select Order by Click Order Value

Open clairekearney opened this issue 7 years ago • 1 comments

Hi David,

Thank you so much for such a fantastic library! I'm using it to place a JavaScript front-end on a kdb+server to build queries in q from a UI. As this is building queries, it is important that the select options are saved in the order they are chosen. I have built this using your $('#example-order') example from the Further Examples section of your website.

However, when i run: $('#example-order').val()

It does not return in the order they were chosen, but ascending order from how they appear in the dropdown.

To explain, the buttonText is showing: "Option 5, Option 3, Option 2". However, the following is being returned in: $('#example-order').val() (3) ["2", "3", "5"]

I need: ["5"; "3"; "2"]

Is the only option to save the arranged option to a global variable?

Many Thanks, Claire

clairekearney avatar Jun 06 '18 15:06 clairekearney

Hello, i have found on webpage of this plugin in further-examples solution but how can i implement it in on change that i already have it...

onebeat avatar Jan 20 '20 23:01 onebeat