質問編集履歴

1

2021/12/03 18:22

投稿

meron88
meron88

スコア50

test CHANGED
File without changes
test CHANGED
@@ -6,60 +6,6 @@
6
6
 
7
7
 
8
8
 
9
-
10
-
11
- ### 該当のソースコード
12
-
13
-
14
-
15
- ```ここに言語名を入力
16
-
17
- <div>
18
-
19
- <form method="POST" action="{{ route('menu.update', $menus->code)}}">
20
-
21
- <label>削除する場合チェック</label>
22
-
23
- <input type="checkbox" id="isDelete">
24
-
25
- <label>削除</label>
26
-
27
- <button onclick="deleteEvent()">保存</button>
28
-
29
- </form>
30
-
31
- </div>
32
-
33
- @push('scripts')
34
-
35
- <script>
36
-
37
- function deleteEvent() {
38
-
39
- const checkFlg = document.getElementById('isDelete').checked
40
-
41
- const inputForm = document.getElementById('inputForm')
42
-
43
- if (!checkFlg) {
44
-
45
- return
46
-
47
- }
48
-
49
- inputForm.action = "{{ route('menu.delete', $menus->code)}}"
50
-
51
- }
52
-
53
- </script>
54
-
55
- @endpush
56
-
57
-
58
-
59
- ```
60
-
61
-
62
-
63
9
  ### 補足情報(FW/ツールのバージョンなど)
64
10
 
65
11