質問編集履歴

8

HTMLの追加

2019/06/08 01:56

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -44,4 +44,38 @@
44
44
  };
45
45
  });
46
46
  });
47
+ ```
48
+
49
+ ```HTML
50
+ <form method="post" name="formreq" action="edit">
51
+
52
+ <table id="foo-table">
53
+ <thead>
54
+
55
+
56
+ <tr>
57
+ <th>ID</th>
58
+ <th>会社名</th>
59
+ <th>社員名</th>
60
+ <th>社員かな名</th>
61
+ <th>性別</th>
62
+ <th></th>
63
+ </tr>
64
+ </thead>
65
+ <tbody id="addgyou">
66
+
67
+
68
+ <tr>
69
+ <td>1</td>
70
+ <td class="hensyu">テスト会社</td>
71
+ <td class="hensyu">てすと太郎</td>
72
+ <td class="hensyu">テストタロウ</td>
73
+ <td class="hensyu">男</td>
74
+ <td><button type="submit" id="tdatai" title="編集">編集</button></td>
75
+ </tr>
76
+
77
+ </tbody>
78
+ </table>
79
+
80
+ </form>
47
81
  ```

7

間違っていた箇所修正

2019/06/08 01:55

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -43,4 +43,5 @@
43
43
  });
44
44
  };
45
45
  });
46
- });
46
+ });
47
+ ```

6

不足、間違っていた点の修正

2019/06/07 14:47

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -43,41 +43,4 @@
43
43
  });
44
44
  };
45
45
  });
46
- });
46
+ });
47
-
48
- ```HTML
49
- <tbody id="addgyou">
50
-
51
- @for($i = 0; $i < count($user_info); $i++)
52
-
53
- <tr>
54
- <td>{{$user_info[$i]->login_id}}</td>
55
- <td class="hensyu">{{$user_info[$i]->office_name}}</td>
56
- <td class="hensyu">{{$user_info[$i]->user_name}}</td>
57
- <td class="hensyu">{{$user_info[$i]->kana}}</td>
58
- @if($user_info[$i]->member_kbn == 0)
59
- <td class="kbn">フリー会員</td> @elseif($user_info[$i]->member_kbn ==
60
- 1)
61
- <td class="kbn">プレミアム会員(個人)</td>
62
- @elseif($user_info[$i]->member_kbn == 2)
63
- <td class="kbn">プレミアム会員(法人)</td> @endif
64
- @if($user_info[$i]->serial_number != NULL)
65
- <td>ログイン</td> @else
66
- <td>ログオフ</td> @endif
67
- <td style="width: 100px" class="text-center"><div
68
- style="display: inline-flex">
69
- <button type="submit" id="tdatai" class="btn btn-success" title="編集"
70
- formaction="/edit_user">
71
- <i class="fas fa-pencil-alt"></i>
72
- </button>
73
- &nbsp;&nbsp;
74
- <button class="btn btn-danger btn-dell" title="削除"
75
- formaction="user_dele">
76
- <i class="fas fa-times"></i>
77
- </button>
78
- </div></td>
79
- </tr>
80
- @endfor
81
-
82
- </tbody>
83
- ```

5

HTML部分更新

2019/06/07 14:46

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -44,4 +44,40 @@
44
44
  };
45
45
  });
46
46
  });
47
+
48
+ ```HTML
49
+ <tbody id="addgyou">
50
+
51
+ @for($i = 0; $i < count($user_info); $i++)
52
+
53
+ <tr>
54
+ <td>{{$user_info[$i]->login_id}}</td>
55
+ <td class="hensyu">{{$user_info[$i]->office_name}}</td>
56
+ <td class="hensyu">{{$user_info[$i]->user_name}}</td>
57
+ <td class="hensyu">{{$user_info[$i]->kana}}</td>
58
+ @if($user_info[$i]->member_kbn == 0)
59
+ <td class="kbn">フリー会員</td> @elseif($user_info[$i]->member_kbn ==
60
+ 1)
61
+ <td class="kbn">プレミアム会員(個人)</td>
62
+ @elseif($user_info[$i]->member_kbn == 2)
63
+ <td class="kbn">プレミアム会員(法人)</td> @endif
64
+ @if($user_info[$i]->serial_number != NULL)
65
+ <td>ログイン</td> @else
66
+ <td>ログオフ</td> @endif
67
+ <td style="width: 100px" class="text-center"><div
68
+ style="display: inline-flex">
69
+ <button type="submit" id="tdatai" class="btn btn-success" title="編集"
70
+ formaction="/edit_user">
71
+ <i class="fas fa-pencil-alt"></i>
72
+ </button>
73
+ &nbsp;&nbsp;
74
+ <button class="btn btn-danger btn-dell" title="削除"
75
+ formaction="user_dele">
76
+ <i class="fas fa-times"></i>
77
+ </button>
78
+ </div></td>
79
+ </tr>
80
+ @endfor
81
+
82
+ </tbody>
47
83
  ```

4

2019/06/07 14:46

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -14,7 +14,7 @@
14
14
  分かりにくい文章で申し訳ありません。
15
15
 
16
16
 
17
- ```jQuery
17
+ ```js
18
18
  $(function($){
19
19
  $('.hensyu').click(function(){
20
20
  if(!$(this).hasClass('on')){
@@ -44,4 +44,4 @@
44
44
  };
45
45
  });
46
46
  });
47
- ```.js
47
+ ```

3

2019/06/07 14:38

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -14,8 +14,8 @@
14
14
  分かりにくい文章で申し訳ありません。
15
15
 
16
16
 
17
- ```Jquery
17
+ ```jQuery
18
- jQuery(function($){
18
+ $(function($){
19
19
  $('.hensyu').click(function(){
20
20
  if(!$(this).hasClass('on')){
21
21
  $(this).addClass('on');
@@ -44,4 +44,4 @@
44
44
  };
45
45
  });
46
46
  });
47
- ```
47
+ ```.js

2

2019/06/07 14:37

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
@@ -1,5 +1,5 @@
1
1
  HTML5のrequiredについて質問があります。
2
- 以前も質問させていたのですが解決できなかったのでもう少しまとめてもう一度質問させていただきます。
2
+ 以前も質問させていただいたのですが解決できなかったのでもう少しまとめてもう一度質問させていただきます。
3
3
  初心者なのでよろしくお願いします。
4
4
 
5
5
  現状tableのtd要素をクリックするとinputに変更してtd要素の中身を書き換える機能を実装したくてその際にそのinputからフォーカスが外れたらHTML5のrequiredの「必須です」みたいな吹き出しが出るようにしたいのですがどういう風に実装すればいいのかわからず詰まっています。
@@ -11,7 +11,9 @@
11
11
 
12
12
  実際に下記のコードのような記述をしているのですが吹き出しが出てくれなくて困っています。
13
13
 
14
+ 分かりにくい文章で申し訳ありません。
14
15
 
16
+
15
17
  ```Jquery
16
18
  jQuery(function($){
17
19
  $('.hensyu').click(function(){

1

2019/06/07 13:16

投稿

kinisinai
kinisinai

スコア28

title CHANGED
File without changes
body CHANGED
File without changes