JSFiddle - React, Tailwind, and code Playground

by Taewan Kim

HTML

<script src="//code.jquery.com/jquery.min.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.min.js"></script>
<table>
<tr>
  <td>첫 번째 아이템</td>
</tr>
<tr>
  <td>두 번째 아이템</td>
</tr>
<tr>
  <td>세 번째 아이템</td>
</tr>
<tr>
  <td>네 번째 아이템</td>
</tr>
</table>

CSS

tr {
  width : 10px
}

JavaScript

$("table").sortable({
	items: $("tr")
});