Skip to content

Commit 148a95a

Browse files
author
russom
committed
add regex to name label
1 parent 56c0cf5 commit 148a95a

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

‎Form-Controls/index.html‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,14 @@ <h1>Product Pick</h1>
1717
<div>
1818

1919
<label for="name"> Name:</label>
20-
<input type="text" id="name" name="name" required pattern="\S{2,}" title="Please enter at least two non-space characters.">
20+
<input
21+
type="text"
22+
id="name"
23+
name="name"
24+
required
25+
pattern="\S{2,}"
26+
title="Please enter at least two non-space characters."
27+
/>
2128
</div>
2229

2330
<div>

0 commit comments

Comments
 (0)