質問編集履歴

3

再修正

2017/11/17 04:10

投稿

pecchan
pecchan

スコア555

test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,10 @@
21
21
  ```html
22
22
 
23
23
  <head>
24
+
25
+ <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
26
+
27
+
24
28
 
25
29
  <link type="text/css" rel="stylesheet"
26
30
 
@@ -97,3 +101,89 @@
97
101
  エラー内容
98
102
 
99
103
  ![イメージ説明](5e35854ed297e4a6bb8f8e828d38535b.jpeg)
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+ 【追記】以下のように修正しました
112
+
113
+
114
+
115
+ ```html
116
+
117
+ <head>
118
+
119
+
120
+
121
+ <link type="text/css" rel="stylesheet"
122
+
123
+ href="http://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.min.css" />
124
+
125
+ <style type="text/css">
126
+
127
+ table, th, td { border-collapse: collapse; border: solid 1px #000; }
128
+
129
+ </style>
130
+
131
+ <script type="text/javascript"
132
+
133
+ src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
134
+
135
+ <script type="text/javascript"
136
+
137
+ src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
138
+
139
+ <script type="text/javascript">
140
+
141
+ $(function() {
142
+
143
+ $('#test').sortable();
144
+
145
+ });
146
+
147
+ </script>
148
+
149
+
150
+
151
+ </head>
152
+
153
+ <table id="aaa">
154
+
155
+ <thead>
156
+
157
+ <tr>
158
+
159
+ <th>No.</th>
160
+
161
+ <th>タイトル</th>
162
+
163
+ </tr>
164
+
165
+ </thead>
166
+
167
+ <tbody id="test">
168
+
169
+ <tr>
170
+
171
+ <td>1</td>
172
+
173
+ <td>坊っちゃん</td>
174
+
175
+ </tr>
176
+
177
+ <tr>
178
+
179
+ <td>2</td>
180
+
181
+ <td>吾輩は猫である</td>
182
+
183
+ </tr>
184
+
185
+ </tbody>
186
+
187
+ <talbe>
188
+
189
+ ```

2

書き直したコードを再掲載

2017/11/17 04:10

投稿

pecchan
pecchan

スコア555

test CHANGED
File without changes
test CHANGED
@@ -22,11 +22,9 @@
22
22
 
23
23
  <head>
24
24
 
25
- <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
25
+ <link type="text/css" rel="stylesheet"
26
26
 
27
-
28
-
29
- <link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.min.css" />
27
+ href="http://code.jquery.com/ui/1.10.3/themes/cupertino/jquery-ui.min.css" />
30
28
 
31
29
  <style type="text/css">
32
30
 
@@ -34,23 +32,25 @@
34
32
 
35
33
  </style>
36
34
 
37
- <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
35
+ <script type="text/javascript"
38
36
 
39
- <script type="text/javascript" src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
37
+ src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
40
38
 
39
+ <script type="text/javascript"
41
40
 
42
-
41
+ src="http://code.jquery.com/ui/1.10.3/jquery-ui.min.js"></script>
43
-
44
42
 
45
43
  <script type="text/javascript">
46
44
 
47
45
  $(function() {
48
46
 
49
- $('#test').sortable();
47
+ $('#test').sortable();
50
48
 
51
49
  });
52
50
 
53
51
  </script>
52
+
53
+
54
54
 
55
55
  </head>
56
56
 

1

2017/11/17 04:04

投稿

pecchan
pecchan

スコア555

test CHANGED
File without changes
test CHANGED
@@ -3,6 +3,8 @@
3
3
 
4
4
 
5
5
  「sortable is not a function」というエラーが出て動作しません。
6
+
7
+ ドラッグしても反応しません。
6
8
 
7
9
 
8
10
 
@@ -18,7 +20,7 @@
18
20
 
19
21
  ```html
20
22
 
21
-
23
+ <head>
22
24
 
23
25
  <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
24
26
 
@@ -50,7 +52,7 @@
50
52
 
51
53
  </script>
52
54
 
53
-
55
+ </head>
54
56
 
55
57
  <table id="aaa">
56
58