質問編集履歴
4
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,13 +88,13 @@
|
|
88
88
|
|
89
89
|
<div id="shop">
|
90
90
|
|
91
|
-
<label><input type="checkbox" name="ho
|
91
|
+
<label><input type="checkbox" name="shop[]" value="1">支店1</label>
|
92
92
|
|
93
|
-
<label><input type="checkbox" name="ho
|
93
|
+
<label><input type="checkbox" name="shop[]" value="2">支店2</label>
|
94
94
|
|
95
|
-
<label><input type="checkbox" name="ho
|
95
|
+
<label><input type="checkbox" name="shop[]" value="3">支店3</label>
|
96
96
|
|
97
|
-
<label><input type="checkbox" name="ho
|
97
|
+
<label><input type="checkbox" name="shop[]" value="4">支店4</label>
|
98
98
|
|
99
99
|
</div>
|
100
100
|
|
3
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -61,3 +61,41 @@
|
|
61
61
|
|
62
62
|
|
63
63
|
よろしくお願いいたします。
|
64
|
+
|
65
|
+
|
66
|
+
|
67
|
+
######追記
|
68
|
+
|
69
|
+
```HTML
|
70
|
+
|
71
|
+
<div id="authority">
|
72
|
+
|
73
|
+
<select name="authority">
|
74
|
+
|
75
|
+
<option value="user">ユーザー</option>
|
76
|
+
|
77
|
+
<option value="manager">編集者</option>
|
78
|
+
|
79
|
+
<option value="admin">管理者</option>
|
80
|
+
|
81
|
+
</select>
|
82
|
+
|
83
|
+
</div>
|
84
|
+
|
85
|
+
```
|
86
|
+
|
87
|
+
```HTML
|
88
|
+
|
89
|
+
<div id="shop">
|
90
|
+
|
91
|
+
<label><input type="checkbox" name="hoge[]" value="1">支店1</label>
|
92
|
+
|
93
|
+
<label><input type="checkbox" name="hoge[]" value="2">支店2</label>
|
94
|
+
|
95
|
+
<label><input type="checkbox" name="hoge[]" value="3">支店3</label>
|
96
|
+
|
97
|
+
<label><input type="checkbox" name="hoge[]" value="4">支店4</label>
|
98
|
+
|
99
|
+
</div>
|
100
|
+
|
101
|
+
```
|
2
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<div id="authority">
|
4
4
|
|
5
|
-
<select>
|
5
|
+
<select name="authority">
|
6
6
|
|
7
7
|
<option value="user">ユーザー</option>
|
8
8
|
|
1
修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -36,19 +36,19 @@
|
|
36
36
|
|
37
37
|
######説明
|
38
38
|
|
39
|
-
<
|
39
|
+
<div id="authority">の``value``が``user``の時(デフォルト)
|
40
40
|
|
41
41
|
→<div id="shop">の中のチェックボックスは1つのみ選択可能
|
42
42
|
|
43
43
|
|
44
44
|
|
45
|
-
<
|
45
|
+
<div id="authority">の``value``が``manager``の時
|
46
46
|
|
47
47
|
→<div id="shop">の中のチェックボックスは複数選択可能
|
48
48
|
|
49
49
|
|
50
50
|
|
51
|
-
<
|
51
|
+
<div id="authority">の``value``が``admin``の時
|
52
52
|
|
53
53
|
→<div id="shop">の中のチェックボックスを全て選択、操作もできないようにする
|
54
54
|
|