Skip to content

Commit a53022c

Browse files
committed
fixed problem of reminder still come out even name submission fulfilled the requirement. And the pull down menu is required to select an option.
1 parent 4a75ef1 commit a53022c

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<main>
1616
<form>
1717
<label for="name">Customer Name</label>
18-
<input type="text" id="name" name="name" pattern="[A-Za-z]{1,}" title="You must enter at least two characters" required />
18+
<input type="text" id="name" name="name" pattern=".*\S.*\S.*" title="You must enter at least two characters" required />
1919
<div>
2020
<label for="email">Email</label>
2121
<input type="email" id="email" name="email" required>
@@ -39,6 +39,7 @@
3939
<div>
4040
<label for="size">Size</label>
4141
<select name="size" id="size" required>
42+
<option disabled hidden selected required value="">Select One</option>
4243
<option value="xs">XS</option>
4344
<option value="s">S</option>
4445
<option value="m">M</option>

0 commit comments

Comments
 (0)