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");
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.
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.
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.
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.
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>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With