Skip to content

Commit 8deecd7

Browse files
committed
fixing error to required name pattern
1 parent bdb863a commit 8deecd7

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
@@ -15,7 +15,7 @@ <h1>Product Pick</h1>
1515
<form>
1616
<div>
1717
<label for="name">Name:</label>
18-
<input type="text" name="name" id="name" placeholder="John Smith" required pattern=".*\s." minlength="2">
18+
<input type="text" name="name" id="name" placeholder="John Smith" required pattern=".*\S.*\S.*">
1919
</div>
2020
<div>
2121
<label for="email">Email:</label>
@@ -37,7 +37,7 @@ <h1>Product Pick</h1>
3737
<input type=radio name="colour" id="white" value="white">
3838
</div>
3939
<div>
40-
Size - Please select one
40+
Size - Please select one
4141
</div>
4242
<div>
4343
<label for="xs">XS</label>

0 commit comments

Comments
 (0)