jquery-validation / jquery-validation

jQuery Validation Plugin library sources

Home Page:https://jqueryvalidation.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Additional validation vinUS fails to validate valid Vehicle Identification Number (VIN).

wewhite opened this issue · comments

Your environment

  • Version of jquery-validate: 1.19.5
  • Browser name and version: All

@name $.validator.methods.vinUS

Current behavior

Valid vehicle identification number (VIN) is not validated correctly.
Entering in valid VIN results with vinUS = false;

Expected behavior

Entering in valid VIN should result with vinUS = true;

Live demo

Have pre populated two (2) input fields with valid VIN.
One input field uses validate 1.19.5
Second input field uses validate add code with proposed fix.

https://jsbin.com/dipamonegi/1/edit?html,output

Just click the submit button, different results will show for same VIN entered.