回答編集履歴
1
追記
answer
CHANGED
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
jquery-uiを2度呼んでますね?
|
|
2
2
|
最初の方を消して下さい
|
|
3
|
-
また同じ1系を使うにしてももう少し新しいバージョンをお勧めします
|
|
3
|
+
また同じ1系を使うにしてももう少し新しいバージョンをお勧めします
|
|
4
|
+
|
|
5
|
+
# 念のため
|
|
6
|
+
|
|
7
|
+
```javascript
|
|
8
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
|
9
|
+
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
|
|
10
|
+
<script>
|
|
11
|
+
$(function() {
|
|
12
|
+
$('#test').sortable();
|
|
13
|
+
});
|
|
14
|
+
</script>
|
|
15
|
+
<table border>
|
|
16
|
+
<thead>
|
|
17
|
+
<tr>
|
|
18
|
+
<th>No.</th>
|
|
19
|
+
<th>タイトル</th>
|
|
20
|
+
</tr>
|
|
21
|
+
</thead>
|
|
22
|
+
<tbody id="test">
|
|
23
|
+
<tr>
|
|
24
|
+
<td>1</td>
|
|
25
|
+
<td>坊っちゃん</td>
|
|
26
|
+
</tr>
|
|
27
|
+
<tr>
|
|
28
|
+
<td>2</td>
|
|
29
|
+
<td>吾輩は猫である</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
```
|