Skip to content

Commit 43852c5

Browse files
committed
auto validation
1 parent 85d011f commit 43852c5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

debugging/book-library/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ <h1>Library</h1>
4444
id="author"
4545
name="author"
4646
required
47+
pattern="[a-zA-Z\s.'-]+"
48+
title="Only letters, spaces, apostrophes, periods, or hyphens allowed"
4749
/>
4850
<label for="pages">Pages:</label>
4951
<input
@@ -58,14 +60,12 @@ <h1>Library</h1>
5860
type="checkbox"
5961
class="form-check-input"
6062
id="check"
61-
value=""
6263
/>Read
6364
</label>
6465
<input
6566
type="submit"
6667
value="Submit"
6768
class="btn btn-primary"
68-
onclick="submit();"
6969
/>
7070
</div>
7171
</form>

0 commit comments

Comments
 (0)