teratail header banner
teratail header banner
質問するログイン新規登録

回答編集履歴

4

修正

2017/02/11 12:17

投稿

s8_chu
s8_chu

スコア14731

answer CHANGED
@@ -39,7 +39,6 @@
39
39
  for (i = 0; i < inputText.length; i++) {
40
40
  showtext += inputText[i] + "\n";
41
41
  }
42
- alert(showtext);
43
42
  $("#outputB").text(showtext);
44
43
  });
45
44
  });

3

修正

2017/02/11 12:17

投稿

s8_chu
s8_chu

スコア14731

answer CHANGED
@@ -40,7 +40,7 @@
40
40
  showtext += inputText[i] + "\n";
41
41
  }
42
42
  alert(showtext);
43
- $("#outputB").text(showtext).html();
43
+ $("#outputB").text(showtext);
44
44
  });
45
45
  });
46
46
  </script>

2

修正

2017/02/11 12:16

投稿

s8_chu
s8_chu

スコア14731

answer CHANGED
@@ -39,7 +39,8 @@
39
39
  for (i = 0; i < inputText.length; i++) {
40
40
  showtext += inputText[i] + "\n";
41
41
  }
42
+ alert(showtext);
42
- $("#outputB").html(showtext);
43
+ $("#outputB").text(showtext).html();
43
44
  });
44
45
  });
45
46
  </script>

1

修正

2017/02/11 12:13

投稿

s8_chu
s8_chu

スコア14731

answer CHANGED
@@ -39,9 +39,7 @@
39
39
  for (i = 0; i < inputText.length; i++) {
40
40
  showtext += inputText[i] + "\n";
41
41
  }
42
- alert(showtext);
43
42
  $("#outputB").html(showtext);
44
-
45
43
  });
46
44
  });
47
45
  </script>