1.

Write down the query to validate Pan Number

Answer»

Below query is the JQUERY which help us to validate the PAN number wheather it is correct or not



$(document).ready(function{
function ValidatePAN()
{
VAR panno=$("#txtPan").VAL();
var regpanno = /^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/;

if(regpanno.test(panno) == false)
{
$("#errormsg").val('pan number is incorrect');
}
ELSE
{
$("#errormsg").val('pan number is correct');
}
}
});



Discussion

No Comment Found