質問編集履歴
1
関数の呼び出し側を追記致しました。ボタンをクリックするとチェックボックスの名前を引数に渡して呼び出します。
test
CHANGED
File without changes
|
test
CHANGED
@@ -37,6 +37,26 @@
|
|
37
37
|
<script type="text/javascript" src="js/script.js" th:href="@{/js/script.js}">
|
38
38
|
|
39
39
|
</script>
|
40
|
+
|
41
|
+
```
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
```
|
46
|
+
|
47
|
+
<form method="post" action="/" enctype="multipart/form-data">
|
48
|
+
|
49
|
+
<h2>項目の並べ替え</h2>
|
50
|
+
|
51
|
+
<input type="radio" name="sort_radio" value="1">名前順
|
52
|
+
|
53
|
+
<input type="radio" name="sort_radio" value="2">ID順
|
54
|
+
|
55
|
+
<input type="radio" name="sort_radio" value="3">誕生日順
|
56
|
+
|
57
|
+
<input type="button" value="並べ替え" onclick="sort('sort_radio')">
|
58
|
+
|
59
|
+
</form>
|
40
60
|
|
41
61
|
```
|
42
62
|
|