Skip to content

Commit ec30f47

Browse files
committed
Added size selector valdation to form
1 parent e25b334 commit ec30f47

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,30 @@ <h1>Product Pick</h1>
6262
<div>
6363
<label for="t-shirt-colour">Please select a t-shirt colour:</label>
6464
<select id="t-shirt-colour" name="colour" required>
65-
<option value="">Please select one colour</option>
65+
<option value="">Colour</option>
6666
<option>Burgundy</option>
6767
<option>Forest Green</option>
6868
<option>Ochre Yellow</option>
6969
</select>
7070
</div>
71+
<div>
72+
<label for="t-shirt-size">Please select a size</label>
73+
<select id="t-shirt-size" name="size" required>
74+
<option value="">Size</option>
75+
<option>XS</option>
76+
<option>S</option>
77+
<option>M</option>
78+
<option>L</option>
79+
<option>XL</option>
80+
<option>XXL</option>
81+
</select>
82+
</div>
7183
<button>Submit</button>
7284
</form>
7385
</main>
7486
<footer>
7587
<!-- change to your name-->
76-
<p>By HOMEWORK SOLUTION</p>
88+
<p>By Mars Adesina</p>
7789
</footer>
7890
</body>
7991
</html>

0 commit comments

Comments
 (0)