Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 690 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 690 Bytes

select2-sortable

A little plugin that will make select2 multiple select become sortable out of the box.

Usage:

// init select2 sortable
$(select2multiselect).select2Sortable();

// destroy select2 sortable
$(select2multiselect).select2Sortable('destroy');

// manually trigger the sorting
$(select2multiselect).select2SortableOrder();

// custom options
$(select2multiselect).select2Sortable({
	bindOrder: 'formSubmit' // or `sortableStop`,
	sortableOptions: {
		// please refer to jQuery UI sortable API (http://api.jqueryui.com/sortable/)
	}
});

Contributors: