Skip to content

Commit b9cc5f9

Browse files
committed
a strict validation rule
1 parent d845fd4 commit b9cc5f9

1 file changed

Lines changed: 12 additions & 9 deletions

File tree

Form-Controls/index.html

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,18 @@ <h1>Product Pick</h1>
1616
<form>
1717
<!-- write your html here-->
1818
<!-- Customer Name -->
19-
<label for="name">Full Name:</label>
20-
<input
21-
type="text"
22-
id="name"
23-
name="name"
24-
required
25-
minlength="2"
26-
placeholder="Enter your full name"
27-
/>
19+
<!-- Customer Name -->
20+
<label for="name">Full Name:</label>
21+
<input
22+
type="text"
23+
id="name"
24+
name="name"
25+
required
26+
minlength="2"
27+
pattern=".*\S.*"
28+
placeholder="Enter your full name"
29+
/>
30+
2831
<br /><br />
2932

3033
<!-- Email -->

0 commit comments

Comments
 (0)