Skip to content

Commit e25b334

Browse files
committed
Added colour selector validation to form
1 parent 74a67c9 commit e25b334

1 file changed

Lines changed: 13 additions & 4 deletions

File tree

Form-Controls/index.html

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ <h1>Product Pick</h1>
4545
<form>
4646
<!-- write your html here-->
4747
<!--
48-
[ ] customers name = requires at least two non space characters.
49-
[ ] customer email = requires a consistent pattern
50-
[ ] t-shirt color = required to choose from only 3 options!
51-
[ ]t shirt size = required to choose from only 6 sizes!
48+
[x] customers name = requires at least two non space characters.
49+
[x] customer email = requires a consistent pattern
50+
[x] t-shirt color = required to choose from only 3 options!
51+
[ ]t-shirt size = required to choose from only 6 sizes!
5252
5353
this will also help you fill in your PR message later-->
5454
<div>
@@ -59,6 +59,15 @@ <h1>Product Pick</h1>
5959
<label for="email">E-mail: </label>
6060
<input id="email" name="email" type="email" required />
6161
</div>
62+
<div>
63+
<label for="t-shirt-colour">Please select a t-shirt colour:</label>
64+
<select id="t-shirt-colour" name="colour" required>
65+
<option value="">Please select one colour</option>
66+
<option>Burgundy</option>
67+
<option>Forest Green</option>
68+
<option>Ochre Yellow</option>
69+
</select>
70+
</div>
6271
<button>Submit</button>
6372
</form>
6473
</main>

0 commit comments

Comments
 (0)