Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pakistani CNIC and mobile format Masking Required [closed]

I have work on a project to used the mask of cnic and mobile for Pakistani format.

The format of CNIC is : XXXXX-XXXXXXX-X

The format of Mobile is 03XX-XXXXXXX

CODE:

   $('#CNIC_No').mask("99999-9999999-9");
like image 867
Sarfaraz Avatar asked Nov 28 '17 09:11

Sarfaraz


People also ask

Who is eligible for a CNIC in Pakistan?

All Pakistani citizens aged 18 and over are eligible for a CNIC and have to own one. Therefore, all citizens who have reached this age must immediately apply for one. As it is a vital identity document, citizens who lost their CNIC must apply to replace it.

How to cancel CRC-s/CNIC in Pakistan?

Apply for cancellation of CRC-S/CNIC. Renunciation Certificate of Pakistani Nationality OR Valid foreign passport other than dual national country. Note: Applicant name change is not allowed in online application. Please approach nearest NADRA office (if residing in Pakistan). Note: Parent name change is not allowed in online application.

What is NIC number in Pakistan?

National Identity Card (NIC) National Identity Card (NIC) is issued to the citizens of Pakistan. It is a blend of state-of-the-art technology and well-defined business rules to guarantee its authenticity and validity. The unique 13 digit identification number is recognized all over the country.

What is computerised national identity card (CNIC)?

The Computerised National Identity Card ( CNIC) is an identity card issued by Pakistan 's National Database and Registration Authority (NADRA). The card is available to any citizen of Pakistan that is 18 years of age or older. The CNIC is a computerised version of the National Identity Card (NIC). Opening and operating bank accounts.


1 Answers

Please try this code,

    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
    <script src="https://s3-us-west-2.amazonaws.com/s.cdpn.io/3/jquery.inputmask.bundle.js"></script>


    <input type="text"  data-inputmask="'mask': '99999-9999999-9'"  placeholder="XXXXX-XXXXXXX-X"  name="cnic" required="" >

    <input type="text"  data-inputmask="'mask': '0399-99999999'" required=""  type = "number" maxlength = "12" >

   <script>
    $(":input").inputmask();

   </script>
like image 131
Syed Avatar answered Nov 03 '22 01:11

Syed