質問編集履歴

2

修正

2018/09/11 11:45

投稿

takeke
takeke

スコア60

test CHANGED
File without changes
test CHANGED
@@ -250,15 +250,15 @@
250
250
 
251
251
  str = str + color2[i].value + " ";
252
252
 
253
- }else if(str === ""){
254
-
255
- str = "チェックなし";
256
-
257
253
  }
258
254
 
259
255
  }
260
256
 
261
-
257
+   if(str === ""){
258
+
259
+ str = "チェックなし";
260
+
261
+ }
262
262
 
263
263
  document.getElementById("resultcheckbox").innerHTML = str;
264
264
 

1

修正

2018/09/11 11:45

投稿

takeke
takeke

スコア60

test CHANGED
File without changes
test CHANGED
@@ -250,7 +250,7 @@
250
250
 
251
251
  str = str + color2[i].value + " ";
252
252
 
253
- }else if(color2[i].checked === false){
253
+ }else if(str === ""){
254
254
 
255
255
  str = "チェックなし";
256
256