usa phone no validation
function checkPhone(chk){
var pattern = /^(?:\(\d{3}\)|\d{3})(?: *- *)?\d{3}(?: *- *)?\d{4}$/
if (pattern.test(chk)) {
return true;
}
}
function checkPhone(chk){
var pattern = /^(?:\(\d{3}\)|\d{3})(?: *- *)?\d{3}(?: *- *)?\d{4}$/
if (pattern.test(chk)) {
return true;
}
}
No comments:
Post a Comment