imo validator

Validate an IMO (International Maritime Organization)


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-imo___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 IMO.

Sample Is valid?
IMO 9074729
imo 9074729
IMO 9074728

ES6 Module Example

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