質問編集履歴

2

マークダウン

2016/04/06 00:43

投稿

Smar
Smar

スコア40

test CHANGED
File without changes
test CHANGED
@@ -19,6 +19,8 @@
19
19
  <tr>のクリックイベント関数内にてチェックボックスがクリックされた場合は除外にてreturn、のようにしてみたのですが、どうもうまく動きません。
20
20
 
21
21
 
22
+
23
+ ```lang-JavaScript
22
24
 
23
25
  $(function() {
24
26
 
@@ -56,6 +58,8 @@
56
58
 
57
59
  } );
58
60
 
61
+ ```
62
+
59
63
 
60
64
 
61
65
  ざっくりなサンプルですいません…。
@@ -64,7 +68,7 @@
64
68
 
65
69
  datatablesのクリックにての1行選択はそのまま以下のものを使用しました。
66
70
 
67
- https://datatables.net/examples/api/select_single_row.html
71
+ [https://datatables.net/examples/api/select_single_row.html](https://datatables.net/examples/api/select_single_row.html)
68
72
 
69
73
 
70
74
 
@@ -79,6 +83,8 @@
79
83
  テーブル状態はほぼサンプル状態ではありますが、例えば以下のような形になります。
80
84
 
81
85
 
86
+
87
+ ```lang-HTML
82
88
 
83
89
  <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
84
90
 
@@ -180,6 +186,8 @@
180
186
 
181
187
  </table>
182
188
 
189
+ ```
190
+
183
191
 
184
192
 
185
193
  よろしくお願い致します。

1

テーブル内容を追記

2016/04/06 00:43

投稿

Smar
Smar

スコア40

test CHANGED
File without changes
test CHANGED
@@ -69,3 +69,117 @@
69
69
 
70
70
 
71
71
  どなたかお力をお貸しください。
72
+
73
+
74
+
75
+ ※追記です※
76
+
77
+
78
+
79
+ テーブル状態はほぼサンプル状態ではありますが、例えば以下のような形になります。
80
+
81
+
82
+
83
+ <table id="example" class="table table-striped table-bordered table-hover" cellspacing="0" width="100%">
84
+
85
+ <thead>
86
+
87
+ <tr>
88
+
89
+ <th>-</th>
90
+
91
+ <th>Name</th>
92
+
93
+ <th>Position</th>
94
+
95
+ <th>Office</th>
96
+
97
+ <th>Age</th>
98
+
99
+ <th>Start date</th>
100
+
101
+ <th>Salary</th>
102
+
103
+ </tr>
104
+
105
+ </thead>
106
+
107
+ <tbody>
108
+
109
+ <tr>
110
+
111
+ <td><input type="checkbox" name="chk_1" id="chk_1" value="chk_1"></td>
112
+
113
+ <td>Tiger Nixon</td>
114
+
115
+ <td>System Architect</td>
116
+
117
+ <td>Edinburgh</td>
118
+
119
+ <td>61</td>
120
+
121
+ <td>2011/04/25</td>
122
+
123
+ <td>$320,800</td>
124
+
125
+ </tr>
126
+
127
+ <tr>
128
+
129
+ <td><input type="checkbox" name="chk_2" id="chk_2" value="chk_2"></td>
130
+
131
+ <td>Accountant</td>
132
+
133
+ <td>Tokyo</td>
134
+
135
+ <td>63</td>
136
+
137
+ <td>2011/07/25</td>
138
+
139
+ <td>$170,750</td>
140
+
141
+ </tr>
142
+
143
+ <tr class="selected">
144
+
145
+ <td><input type="checkbox" name="chk_3" id="chk_3" value="chk_3"></td>
146
+
147
+ <td>Ashton Cox</td>
148
+
149
+ <td>Junior Technical Author</td>
150
+
151
+ <td>San Francisco</td>
152
+
153
+ <td>66</td>
154
+
155
+ <td>2009/01/12</td>
156
+
157
+ <td>$86,000</td>
158
+
159
+ </tr>
160
+
161
+ <tr>
162
+
163
+ <td><input type="checkbox" name="chk_4" id="chk_4" value="chk_4"></td>
164
+
165
+ <td>Cedric Kelly</td>
166
+
167
+ <td>Senior Javascript Developer</td>
168
+
169
+ <td>Edinburgh</td>
170
+
171
+ <td>22</td>
172
+
173
+ <td>2012/03/29</td>
174
+
175
+ <td>$433,060</td>
176
+
177
+ </tr>
178
+
179
+ </tbody>
180
+
181
+ </table>
182
+
183
+
184
+
185
+ よろしくお願い致します。