File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
2-ui/4-forms-controls/1-form-elements/1-add-select-option Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 1
- The solution, step by step :
1
+ La solution, étape par étape :
2
2
3
3
``` html run
4
4
<select id =" genres" >
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ importance: 5
2
2
3
3
---
4
4
5
- # Add an option to select
5
+ # Ajouter une option à un select
6
6
7
- There's a ` <select> ` :
7
+ Voici un ` <select> ` :
8
8
9
9
``` html
10
10
<select id =" genres" >
@@ -13,10 +13,10 @@ There's a `<select>`:
13
13
</select >
14
14
```
15
15
16
- Use JavaScript to :
16
+ Utiliser JavaScript pour :
17
17
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é" .
21
21
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 ` .
You can’t perform that action at this time.
0 commit comments