multi-select
multi-select copied to clipboard
get values back like control
I have the problem, that my list returns always an ordered array off issues but the control shows unordered.
$('#myModules').multiSelect({ keepOrder: true, afterSelect: function(values){ console.log($('#myModules').val()); }, afterDeselect: function(values){ console.log($('#myModules').val()); } });
This means I selected case.1, case.11, case.2, but the control shows the selected right orderes, means case.2 at last. But return value is always case.1, case.2, case.11
How return the array ordered like the control?