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

回答編集履歴

1

調整

2020/06/28 04:46

投稿

yambejp
yambejp

スコア117906

answer CHANGED
@@ -8,4 +8,17 @@
8
8
  </script>
9
9
  <button type="button" id="btn">送信</button>
10
10
  <div id="result">応答域</div>
11
+ ```
12
+ # 追記
13
+ どうしてもというならこう
14
+ ```javascript
15
+ <script>
16
+ $(function(){
17
+ $('#btn').on('click',function(){
18
+ $("#result").text("1行目\n2行目");
19
+ });
20
+ });
21
+ </script>
22
+ <button type="button" id="btn">送信</button>
23
+ <div id="result" style="white-space:pre">応答域</div>
11
24
  ```