forum

Home / DeveloperSection / Forums / How to sort multiselected items?

How to sort multiselected items?

Tom Cruser199731-Oct-2014
I have already finished the function of grouping the selected items and unselected items, but I need to sort them in alphabetic order meanwhile. My js code is shown below:

$("#id").multiselect({
        beforeopen: function (event, ui) {
            var selected = $("#id option:selected");
            selected.remove();
            $("#id").prepend(selected);
            $("#id").multiselect('refresh');
        }
    });

How can I achieve this?


Updated on 31-Oct-2014

Can you answer this question?


Answer

1 Answers

Liked By