Skip to content

Commit bde0cb4

Browse files
committed
Fixed the form to require color selection
1 parent 0a1ae66 commit bde0cb4

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ <h1>Product Pick</h1>
3737

3838
<!-- colours -->
3939
<label for="color">Choose a color:</label>
40-
<select id="color" name="color">
41-
<option value="red">Choose a colour</option>
40+
<select required id="color" name="color">
41+
<option value="" selected disabled>Choose a colour</option>
4242
<option value="red">Red</option>
4343
<option value="green">Green</option>
4444
<option value="blue">Blue</option>
4545
</select>
4646

4747
<!-- sizes -->
4848
<label for="size">Choose a size:</label>
49-
<select id="size" name="size">
50-
<option selected disabled">Choose a size</option>
49+
<select required id="size" name="size">
50+
<option value="" selected disabled">Choose a size</option>
5151
<option value="XS">XS</option>
5252
<option value="S">S</option>
5353
<option value="M">M</option>

0 commit comments

Comments
 (0)