Skip to content

Commit 8f2dc98

Browse files
committed
Proper markup for submit button and make initial field required as well
1 parent 95539f5 commit 8f2dc98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pat/clone/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ <h3>List of family members</h3>
1515
<!-- First visible instance and also template -->
1616
<fieldset class="clone">
1717
<legend>Family member 1</legend>
18-
<input name="name-1" size="20" type="text" placeholder="Name"/>
18+
<input name="name-1" size="20" type="text" placeholder="Name" required="required"/>
1919
<input name="date-1" type="date" placeholder="birthdate" />
2020
<button type="button" class="pat-button remove-clone icon-trash">Remove</button>
2121
</fieldset>
@@ -28,7 +28,7 @@ <h3>List of family members</h3>
2828
</div>
2929
<!-- Clone trigger -->
3030
<button type="button" class="pat-button clone-trigger">Add an extra family member</button>
31-
<button id="submit" type="submit">submit</button>
31+
<button class="pat-button" id="submit" type="submit">submit</button>
3232
</form>
3333
</body>
3434
</html>

0 commit comments

Comments
 (0)