id validator

Validate a Montenegrin identification number

Basic Example

You can click on sample from the following table to see if it's a valid or invalid Montenegrin id.

Sample ID Is it valid?
0101006210008
0101006220276
0101006230045

Module Example

The following snippet shows how to use the id validator with JavaScript module:


// You might need to change the importing path
import meId from 'formvalidation/validators/id/meId';

const res1 = meId().validate('0101006210008');
// res1.valid === true

const res2 = meId().validate('0101006230045');
// res2.valid === false

Related validators

The following validators are similar to this one and might be useful to you.

Name Description
id Validate an identification number
vat Validate VAT number