isbn validator
Validate an ISBN (International Standard Book Number). Support both ISBN 10 and ISBN 13
Options
Option | HTML attribute | Type | Description |
---|---|---|---|
message |
data-fv-isbn-message |
String | The error message |
When setting options via HTML attributes, remember to
enable the validator by setting data-fv-isbn="true".
The message option can be updated on the fly via the
updateMessage() method
Example
ISBN | Result |
---|---|
9971502100 | |
99921-58-10-7 | |
960 425 059 0 | |
99921-58-10-6 | |
9780306406157 | |
978-0-306-40615-7 | |
978 0 306 40615 7 | |
978-0-306-40615-6 |
Related validators
The following validators might be useful to you: