Skip to content

Commit adcd33e

Browse files
jenegMykolaSopiha
andauthored
Form properties and methods (#308)
* # Form properties and methods * # Form properties and methods * Update 2-ui/4-forms-controls/1-form-elements/article.md * Update 2-ui/4-forms-controls/1-form-elements/article.md * Update 2-ui/4-forms-controls/1-form-elements/article.md * Update 2-ui/4-forms-controls/1-form-elements/article.md * Update 2-ui/4-forms-controls/1-form-elements/article.md * Update 2-ui/4-forms-controls/1-form-elements/article.md Co-authored-by: Mykola Sopiha <[email protected]>
1 parent e685307 commit adcd33e

File tree

3 files changed

+106
-108
lines changed

3 files changed

+106
-108
lines changed

2-ui/4-forms-controls/1-form-elements/1-add-select-option/solution.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
The solution, step by step:
1+
Рішення, крок за кроком:
22

33
```html run
44
<select id="genres">
5-
<option value="rock">Rock</option>
6-
<option value="blues" selected>Blues</option>
5+
<option value="rock">Рок</option>
6+
<option value="blues" selected>Блюз</option>
77
</select>
88

99
<script>
@@ -12,7 +12,7 @@ The solution, step by step:
1212
alert( selectedOption.value );
1313
1414
// 2)
15-
let newOption = new Option("Classic", "classic");
15+
let newOption = new Option("Класика", "classic");
1616
genres.append(newOption);
1717
1818
// 3)

2-ui/4-forms-controls/1-form-elements/1-add-select-option/task.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@ importance: 5
22

33
---
44

5-
# Add an option to select
5+
# Додайте нову опцію до елемента `<select>`
66

7-
There's a `<select>`:
7+
Маємо `<select>`:
88

99
```html
1010
<select id="genres">
11-
<option value="rock">Rock</option>
12-
<option value="blues" selected>Blues</option>
11+
<option value="rock">Рок</option>
12+
<option value="blues" selected>Блюз</option>
1313
</select>
1414
```
1515

16-
Use JavaScript to:
16+
Використовуючи JavaScript:
1717

18-
1. Show the value and the text of the selected option.
19-
2. Add an option: `<option value="classic">Classic</option>`.
20-
3. Make it selected.
18+
1. Виведіть значення та текст обраної опції.
19+
2. Додайте опцію: `<option value="classic">Класика</option>`.
20+
3. Зробіть її обраною.
2121

22-
Note, if you've done everything right, your alert should show `blues`.
22+
Зверніть увагу: якщо ви все зробили правильно, то ваше сповіщення має показати значення `blues`.

0 commit comments

Comments
 (0)