質問編集履歴

2

訂正

2018/07/13 08:01

投稿

MeB
MeB

スコア104

test CHANGED
File without changes
test CHANGED
@@ -148,11 +148,11 @@
148
148
 
149
149
  <div class="searchContent">
150
150
 
151
- <input type="radio" id="type01" name="type[]" value="aaa"><label for="type01">aaa</label>
151
+ <input type="checkbox" id="type01" name="type[]" value="aaa"><label for="type01">aaa</label>
152
152
 
153
- <input type="radio" id="type02" name="type[]" value="bbb"><label for="type02">bbb</label>
153
+ <input type="checkbox" id="type02" name="type[]" value="bbb"><label for="type02">bbb</label>
154
154
 
155
- <input type="radio" id="type02" name="type[]" value="ccc"><label for="type02">ccc</label>
155
+ <input type="checkbox" id="type02" name="type[]" value="ccc"><label for="type02">ccc</label>
156
156
 
157
157
  </div>
158
158
 
@@ -164,11 +164,11 @@
164
164
 
165
165
  <div class="searchContent">
166
166
 
167
- <input type="radio" id="color01" name="color[]" value="red"><label for="color01">赤</label>
167
+ <input type="checkbox" id="color01" name="color[]" value="red"><label for="color01">赤</label>
168
168
 
169
- <input type="radio" id="color02" name="color[]" value="blue"><label for="color02">青</label>
169
+ <input type="checkbox" id="color02" name="color[]" value="blue"><label for="color02">青</label>
170
170
 
171
- <input type="radio" id="color03" name="color[]" value="green"><label for="color03">緑</label>
171
+ <input type="checkbox" id="color03" name="color[]" value="green"><label for="color03">緑</label>
172
172
 
173
173
  </div>
174
174
 

1

追記

2018/07/13 08:01

投稿

MeB
MeB

スコア104

test CHANGED
File without changes
test CHANGED
@@ -131,3 +131,53 @@
131
131
  そもそも同じーキーで違う値を分けることは可能なのでしょうか?
132
132
 
133
133
  宜しくお願いします。
134
+
135
+
136
+
137
+ 追記
138
+
139
+ ajaxでjsonからデータを持って来ています。
140
+
141
+ ```html
142
+
143
+ <form id="form" name="search" action="">
144
+
145
+ <div class="searchRow methodRow">
146
+
147
+ <p>タイプ</p>
148
+
149
+ <div class="searchContent">
150
+
151
+ <input type="radio" id="type01" name="type[]" value="aaa"><label for="type01">aaa</label>
152
+
153
+ <input type="radio" id="type02" name="type[]" value="bbb"><label for="type02">bbb</label>
154
+
155
+ <input type="radio" id="type02" name="type[]" value="ccc"><label for="type02">ccc</label>
156
+
157
+ </div>
158
+
159
+ </div>
160
+
161
+ <div class="searchRow rateRow">
162
+
163
+ <p>色</p>
164
+
165
+ <div class="searchContent">
166
+
167
+ <input type="radio" id="color01" name="color[]" value="red"><label for="color01">赤</label>
168
+
169
+ <input type="radio" id="color02" name="color[]" value="blue"><label for="color02">青</label>
170
+
171
+ <input type="radio" id="color03" name="color[]" value="green"><label for="color03">緑</label>
172
+
173
+ </div>
174
+
175
+ </div>
176
+
177
+ <button class="submit" value="検索">検索</button>
178
+
179
+ <input type="hidden" name="search_submit" value="1">
180
+
181
+ </form>
182
+
183
+ ```