Skip to main content

Drag & Drop

Adds drag-and-drop support for easily rearranging selected items. Requires jQuery UI (sortable).

Html
<select id="DragNDrop" multiple>
<option value="1" selected>Awesome</option>
<option value="2" selected>Beast</option>
<option value="3" selected>Compatible</option>
<option value="4">Thomas Edison</option>
<option value="5">Nikola</option>
<option value="6">Selectize</option>
<option value="7">Javascript</option>
</select>
Javascript
$("#DragNDrop").selectize({
plugins: ["drag_drop"],
});