When writing a Web page, sometimes it may be necessary to sort the UL Li, today it is recommended to use the jquery plugin jquery list Dragsort Implementation of the list drag sorting effect.
Effect
jquery list Dragsort Drag plugin use method
$ ("ul"). Dragsort ({dragselector: "Li", Dragend:function () {}, Dragbetween:false, Placeholdertemplate: "< Li></li> "});
jquery list Dragsort List drag plug-in parameter description
Dragselector
The drag handle for the list item of elements within the CSS selector. The default value is "Li".
Dragselectorexclude
The dragselector within the element of the CSS selector does not trigger dragsort. The default value is "input, textarea, A[href]".
Dragend
The callback function that will be called after the drag is finished.
Dragbetween
Set to "true" if you want to enable multiple groups of lists to drag between selected lists. The default value is False.
Placeholdertemplate
Drag the HTML portion of the list. The default value is "<li></li>".
Scrollcontainer
The CSS selector element, as a scrolling container, such as an overflow div, is set to Automatic. The default value is window.
Scrollspeed
A number, which represents the speed at which a page drags an item, will scroll outside the container, and the higher use value is slower than the speed and lower values. If set to "0″" to disable scrolling. The default value is "5″."
jquery list Drag arrange-jquery list dragsort plug-in parameters and how to use