I have this mobile number format
+14354444744
It can accept upto 15 digits and + is mandatory
no other characters or special characters should be there
function phonenumber(inputtxt) {
var phoneno = /^([+]\d{2})?\d{15}$/;
if(inputtxt.value.match(phoneno)) {
return true;
}
else {
return false;
}
}
Any solution thanks.