ean validator

Validate an EAN (International Article Number)

Options

Using with form field

The HTML attributes are used to set the validator options via the Declarative plugin

Name HTML attribute Type Description
message data-fv-ean___message String The error message

Using with ES6 module

Basic Example

You can click on sample to see if it's a valid or invalid EAN.

Sample Is valid?
73513537
9780471117094
4006381333931
73513536

ES6 Module Example

The following snippet shows how to use the ean validator with ES6 module:

Related validators

The following validators might be useful to you.