I have a multiselect Listbox and fetching the list of selected values using


var selectedItems = $(this).val();


This returns me comma separated array of selected values. But the problem is the array is sorted by values and not generated by order in which selected values were clicked.

How to get selected values in order in which they were clicked ?

Related posts

Recent Viewed