| 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');
}
}
});
| | |