How to write a code for predefine input as PAN number in HTML | SoloLearn: Learn to code for FREE!

+7

How to write a code for predefine input as PAN number in HTML

I put <input> and type="text/number/etc" but how to write for PAN number which contains FIRST 5 digit as alphabet; Next 4 digit number Last 1 digit as Alphabet again. For example : PAN number is " ABCDE1234F " Suppose if any write not such combination then it shows error . . . https://code.sololearn.com/Wn41P2fSoC43/?ref=app

6/1/2020 9:42:26 AM

R K

1 Answer

New Answer

+6

you must write a pattern validator for that