Skip to content

Commit 7fcc55c

Browse files
committed
pattern validation added for stricter validation in the name
1 parent 64c9fb2 commit 7fcc55c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html lang="en">
33
<head>
44
<meta charset="utf-8" />
@@ -23,6 +23,8 @@ <h1>Product Pick</h1>
2323
required
2424
name="customerName"
2525
minlength="2"
26+
pattern=".*\S.*"
27+
title="Name must include at least one non-space character."
2628
/>
2729
<br /><br />
2830
<label for="email">Email:</label>

0 commit comments

Comments
 (0)