Skip to content

Commit b62a0e5

Browse files
feat: Translated the 'Form properties and methods' exercice
1 parent a636275 commit b62a0e5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
The solution, step by step:
1+
La solution, étape par étape:
22

33
```html run
44
<select id="genres">

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

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

33
---
44

5-
# Add an option to select
5+
# Ajouter une option à un select
66

7-
There's a `<select>`:
7+
Voici un `<select>`:
88

99
```html
1010
<select id="genres">
@@ -13,10 +13,10 @@ There's a `<select>`:
1313
</select>
1414
```
1515

16-
Use JavaScript to:
16+
Utiliser JavaScript pour:
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. Afficher la valeur et le texte de l'option sélectionnée.
19+
2. Ajouter une option: `<option value="classic">Classic</option>`.
20+
3. La définir comme "selectionné".
2121

22-
Note, if you've done everything right, your alert should show `blues`.
22+
Note: Si tout a été fait correctement, l'alerte devrait afficher `blues`.

0 commit comments

Comments
 (0)