Skip to content

Commit 61422ad

Browse files
author
Asanda Dunn
committed
updated form control
1 parent e0bdd60 commit 61422ad

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Form-Controls/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ <h1>Product Pick</h1>
1515
<form>
1616
<div>
1717
<label for = "name">Name</label>
18-
<input type = "text" name = "name" id = "name" minlength = "2" required />
18+
<input type = "text" name = "name" id = "name" minlength = "2" required
19+
pattern=".*\S.*\S.*" />
1920
</div>
2021

2122

@@ -30,7 +31,7 @@ <h1>Product Pick</h1>
3031
<input type ="radio" name = "colour" id = "red" value = "Red" required />
3132
<label for = "red">Red</label>
3233

33-
<input type = "radio" name = "color" id = "blue" value = "Blue"/>
34+
<input type = "radio" name = "colour" id = "blue" value = "Blue"/>
3435
<label for = "blue">Blue</label>
3536

3637
<input type = "radio" name = "colour" id = "black" value = "Black"/>

0 commit comments

Comments
 (0)