Skip to Navigation or
Skip to Content

Jquery Drag And Drop Sort

Jquery Drag And Drop SortQuick Links

Visit the jQuery Drag And Drop Sort project hub, which has a demonstration and download for this plugin on JS Plugins JavaScript Plugin Library.

Drag And Drop Sort Demonstration.

Description

The jQuery Drag And Drop Sort project is a plugin for the jQuery JavaScript Framework, which can apply drag and drop re-ordering on any collection of elements. It can work on a table, a list or even a collection of paragraphs.

Requirements

CSS

/* Recommended styles */
		
		ul .ddsinsert {
			border-top: 3px solid Green;
		}
		
		tbody .ddsinsert td {
			border-top: 3px solid Green;
		}
		
		div > .ddsinsert {
			border-top: 3px solid Green;
		}
		
		.ddsitem {
			cursor: crosshair;
		}
		
		.ddsmoving {
			color: Orange;
		}
		
		/* Optional styles */
		
		table {
			width: 300px;
			border: 1px solid Gray;
			border-collapse: collapse;
		}
		
		td {
			border: 1px solid Gray;
		}

JavaScript

$("#example").draganddropsort();

With all options set:

$("#example").draganddropsort({
    "classmodifier": "dds",
    "appendlastline": true
});

 

You Are Here: Home » JavaScript » Jquery Drag And Drop Sort

 

I use a cookie on this website. This cookie doesn't contain or relate to any personal information and it isn't shared with any other website, it just ensures that I don't count you more than once in my website statistics. The Privacy and Electronic Communications Regulations require me to ask your permission to use this cookie, so please indicate below that you are happy for me to do this - I will remember your selection with a cookie, so if you accept I won't ask again...