We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cd70475 + 1b4bd42 commit 20f7462Copy full SHA for 20f7462
2-ui/4-forms-controls/1-form-elements/1-add-select-option/solution.md
@@ -8,12 +8,12 @@ The solution, step by step:
8
9
<script>
10
// 1)
11
- let selectedOption = genres.options[select.selectedIndex];
+ let selectedOption = genres.options[genres.selectedIndex];
12
alert( selectedOption.value );
13
14
// 2)
15
- let newOption = new Option("classic", "Classic");
16
- select.append(newOption);
+ let newOption = new Option("Classic", "classic");
+ genres.append(newOption);
17
18
// 3)
19
newOption.selected = true;
0 commit comments