Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (29 sloc) 0.496 kB
<script src="http://code.jquery.com/jquery-1.7.min.js"></script>
<script src="sortable.js"></script>
<script>
$(function () {
new Sortable($('ul#list'));
});
</script>
<style>
ul#list {
list-style: none;
width: 400px;
padding: 0;
}
ul#list li {
margin: 10px;
padding: 5px;
border: 1px solid #ccc;
background-color: #eee;
}
</style>
<ul id="list">
<li>item 1</li>
<li>item 2</li>
<li>item 3</li>
<li>item 4</li>
<li>item 5</li>
<li>item 6</li>
<li>item 7</li>
</ul>
Jump to Line
Something went wrong with that request. Please try again.