質問編集履歴
1
脱字、ocument を document に修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
select(A)の見た目が変わるだけで、select(B)の項目は変化しません。
|
12
12
|
|
13
13
|
```javascript
|
14
|
-
ocument.getElementById('select-a').value = 1;
|
14
|
+
document.getElementById('select-a').value = 1;
|
15
15
|
```
|
16
16
|
また、下記のように、select(A)を変更後に、hoge() を呼び出すとエラーになります。
|
17
17
|
```
|
@@ -19,7 +19,7 @@
|
|
19
19
|
```
|
20
20
|
|
21
21
|
```javascript
|
22
|
-
ocument.getElementById('select-a').value = 1;
|
22
|
+
document.getElementById('select-a').value = 1;
|
23
23
|
hoge();
|
24
24
|
```
|
25
25
|
|