Skip to content
This repository was archived by the owner on Feb 12, 2020. It is now read-only.

Commit 767d1a4

Browse files
committed
add ability to ignore specific fields with novalidate-field attribute
1 parent d7046c4 commit 767d1a4

File tree

3 files changed

+16
-1
lines changed

3 files changed

+16
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ Name attributes are required for all forms and form fields. Any element without
4747
```
4848

4949

50+
### Ignoring Specific Fields
51+
52+
By default, all fields within a `<form>` element are expected to validate according to their rules.
53+
54+
If you need to exempt a field — perhaps because it serves some other Javascripty purpose — simply add a `novalidate-field` attribute to the element and it will be skipped.
55+
56+
5057
### Method: formErrors()
5158

5259
This method can be used to retrieve all errors for a given form, or an error for a single form field.

0 commit comments

Comments
 (0)