JSFiddle - React, Tailwind, and code Playground
by Gopinath Kaliappan
HTML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css">
<ul class="sortable">
<div>Item 1</div>
<div>Item 2</div>
<div class="unsortable">Item 3</div>
</ul>
CSS
.sortable {
list-style-type: none;
margin: 0;
padding: 0;
width: 60%;
}
.sortable li {
margin: 0 3px 3px 3px;
padding: 0.4em;
padding-left: 1.5em;
font-size: 1.4em;
height: 18px;
}
.sortable li span {
position: absolute;
margin-left: -1.3em;
}
li.unsortable {
background: #999;
opacity:.5;
}
JavaScript
$(".sortable").sortable({
items: "li:not(.unsortable)"
});
$(".sortable").disableSelection();