回答編集履歴
2
修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
$('#modal-st').on('click', function () {
|
12
12
|
|
13
|
-
$('#hidecheck2').val($('#materialUnchecked2'));
|
13
|
+
$('#hidecheck2').val($('#materialUnchecked2').val());
|
14
14
|
|
15
15
|
}
|
16
16
|
|
1
修正
test
CHANGED
@@ -1,8 +1,18 @@
|
|
1
1
|
```javascript
|
2
2
|
|
3
|
-
<input type="checkbox" class="form-check-input" id="materialUnchecked2" value="2">
|
3
|
+
<input type="checkbox" class="form-check-input" id="materialUnchecked2" value="2"><label>東京</label>
|
4
4
|
|
5
5
|
<input type="hidden" id="hidecheck2" value="2" />
|
6
|
+
|
7
|
+
|
8
|
+
|
9
|
+
// jQuery
|
10
|
+
|
11
|
+
$('#modal-st').on('click', function () {
|
12
|
+
|
13
|
+
$('#hidecheck2').val($('#materialUnchecked2'));
|
14
|
+
|
15
|
+
}
|
6
16
|
|
7
17
|
```
|
8
18
|
|