Skip to content

Commit 21f4714

Browse files
committed
added disabled selected to the dropdowns
1 parent 2b020b8 commit 21f4714

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h1>Product Pick</h1>
5454
<label for="colour">Colour:</label>
5555

5656
<select id="colour" name="colour" required>
57-
<option value="">Select a colour</option>
57+
<option value="" disabled selected>Select a colour</option>
5858
<option value="black">Black</option>
5959
<option value="blue">Blue</option>
6060
<option value="white">White</option>
@@ -66,7 +66,7 @@ <h1>Product Pick</h1>
6666
<label for="size">Size:</label>
6767

6868
<select id="size" name="size" required>
69-
<option value="">Choose your size</option>
69+
<option value="" disabled selected>Choose your size</option>
7070
<option value="xs">XS</option>
7171
<option value="s">S</option>
7272
<option value="m">M</option>

0 commit comments

Comments
 (0)