I am trying to validate a mobile number of 11 digit , where the 1st 3 digit will be 019 , 018 , 017 , 016
. How can I check this that the first 3 digit will be fall among the four criteria??
I can validate if the number is a character or is it less than 11 digit using the code bellow.Now the problem is I want to check If the 1st 3 digit fall into the four criteria( 019 , 018 , 017 , 016
)
var phoneno = /^\d{11}$/;
if(inputtxt.value.match(phoneno))
{
return true;
}