質問編集履歴

3

コード修正

2019/07/25 09:26

投稿

HelloWorld2
HelloWorld2

スコア32

test CHANGED
File without changes
test CHANGED
@@ -31,8 +31,6 @@
31
31
  </head>
32
32
 
33
33
  <body>
34
-
35
- <button id="button1" onclick="setDisabled()">button1</button>
36
34
 
37
35
  <div id="loadHtml2"></div>
38
36
 

2

コード追加

2019/07/25 09:26

投稿

HelloWorld2
HelloWorld2

スコア32

test CHANGED
File without changes
test CHANGED
@@ -68,9 +68,13 @@
68
68
 
69
69
  - html1にbutton1を作成し、onclickで`$("#button2").prop("disabled",true);`を記載したところ、ボタン押下時に非活性になりました。
70
70
 
71
+ ```html1
72
+
73
+ <button id="button1" onclick="setDisabled()">button1</button>
74
+
75
+ ```
76
+
71
77
  ```JavaScript
72
-
73
-
74
78
 
75
79
  function setDisabled(){
76
80
 

1

コード追加

2019/07/25 09:25

投稿

HelloWorld2
HelloWorld2

スコア32

test CHANGED
File without changes
test CHANGED
@@ -67,3 +67,15 @@
67
67
  ### 試したこと
68
68
 
69
69
  - html1にbutton1を作成し、onclickで`$("#button2").prop("disabled",true);`を記載したところ、ボタン押下時に非活性になりました。
70
+
71
+ ```JavaScript
72
+
73
+
74
+
75
+ function setDisabled(){
76
+
77
+ $("#button2").prop("disabled",true);
78
+
79
+ }
80
+
81
+ ```