Skip to content

Commit d178a2f

Browse files
committed
added minimum length on html
1 parent 6773491 commit d178a2f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Form-Controls/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1>Product Pick</h1>
1616
<form action="#" method="POST">
1717
<div>
1818
<label for="name">Name</label>
19-
<input type="text" name="name" id="name" placeholder="name" pattern="(\s*[^\s]\s*){2,}" title="Name must contain at least two letters or characters." required>
19+
<input type="text" name="name" id="name" placeholder="name" pattern="(\s*[^\s]\s*){2,}" minlength="2" title="Name must contain at least two letters or characters." required>
2020
</div>
2121
<div>
2222
<label for="email">Email</label>

0 commit comments

Comments
 (0)