I want to create a multiselect with draggable option. But I couldn't wrote and found myself. My options have their priority (the order in the list). So ex. when I drag the second item to the first place then the priority of item1 will be 2 but item2 will be 1. Additionally I can select (multiple) options.
This will work.
$(function(){
$("select").multiselect({
open: function(){
$("ul").sortable();
$( "ul" ).disableSelection();
}
});
});
Here is the fiddle http://jsfiddle.net/dc41kz1k/1/