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

質問編集履歴

1

HTMLコードを追加しました

2017/06/07 05:13

投稿

gragragrao
gragragrao

スコア14

title CHANGED
File without changes
body CHANGED
@@ -28,6 +28,40 @@
28
28
 
29
29
  というようなものを作りたいのですが、JSが完全に初心者で全く手がつかない状態です。
30
30
 
31
+ ### コード
32
+
33
+ ```HTML
34
+ <div class="width-max">
35
+ <div class="width-max">
36
+ <table class="text-center" width="100%">
37
+ <thead>
38
+ <tr>
39
+ <th class="cols" width="7%">Check</th>
40
+ <th class="cols" width="31%">name</i></th>
41
+ <th class="cols" width="31%">name_id</th>
42
+ <th class="cols" width="31%">class</th>
43
+ </tr>
44
+ </thead>
45
+ </table>
46
+ </div>
47
+ <div class="width-max" style="height: 400px; overflow: auto;">
48
+ <table class="text-center" width="100%">
49
+ <tbody>
50
+ {% for person in person_list %}
51
+ <tr class="person{{person.id}}">
52
+ <td width="7%"><input type="checkbox" name="#" value=""></td>
53
+ <td width="31%">{{person.name}}</td>
54
+ <td width="31%">{{person.id}}</td>
55
+ <td width="31%">{{person.class.id}}</td>
56
+ </tr>
57
+ {% endfor %}
58
+ </tbody>
59
+ </table>
60
+ </div>
61
+ </div>
62
+
63
+ ```
64
+
31
65
  ###試したこと
32
66
  ```JavaScript
33
67
  $(document).ready(function() {