PAN syntax Validation in html

0
184
html

This example explains how to validate Indian PAN syntax in html page.

<form action="action.php" method="post">
PAN No.: <input type="text" name="pan_no" 
pattern="^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?" required="" title="Please enter valid PAN." />
<input type="submit">
</form>

LEAVE A REPLY

Please enter your comment!
Please enter your name here