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 :
22
33``` html run
44<select id =" genres" >
Original file line number Diff line number Diff 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 ` .
You can’t perform that action at this time.
0 commit comments