0

Hello guys, I am having a problem with a regular expression in my jquery validation. Can someone help me please.

The method :

$.validator.addMethod(

        function (value, element) {
           /^[A-Z]{1}\d{12}[A-Z0-9]{1}$/.test( value );
        },
        "Invalid NIC."
);

An example of the NIC field : L261089652789A or L2610896527897

3
Contributors
2
Replies
15
Views
4 Years
Discussion Span
Last Post by pritaeas
0

Not enough information, what is a NIC field? Is it a national insurance number? If so what country is it for?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.