Is there any way I can display the most selected items first in a drop-down?
E.g I have a drop-down which is loaded with 6 items when the application loads:
- A
- B
- C
- D
- E
- F
Lets say the user selects item-C and submits the form.
When the user comes back to this form, I want to sort the dropdown by the most selected items, So in this case the dropdown would be like this:
- C
- A
- B
- D
- E
- F
Is there any jquery plugin that can do this? or do I need to have a table in my database that will store the most selected items?(this would be my last resort)