質問するログイン新規登録

質問編集履歴

1

追記

2017/02/20 09:04

投稿

spellbound
spellbound

スコア190

title CHANGED
File without changes
body CHANGED
@@ -1,3 +1,21 @@
1
+ # 追記
2
+
3
+ ```html
4
+ <form method="POST" action="{{ $article->id }}" accept-charset="UTF-8" onclick="return confirm(Are you sure you want to erase?);">
5
+ <input type="hidden" name="_method" value="DELETE">
6
+ <input type="hidden" name="_token" value="{{ csrf_token() }}">
7
+ <ul>
8
+ <li>
9
+ <button class="button big icon fa-trash" onclick="return confirm('Are you sure you want to delete it?')">
10
+ Delete this article
11
+ </button>
12
+ </li>
13
+ </ul>
14
+ </form>
15
+ ```
16
+
17
+ 一応、Laravel 5.4使っています。
18
+
1
19
  ```javascript
2
20
  $('form :submit').click(function (event) {
3
21
  var TIMEOUT = 10000;