SyntaxFix
Write A Post
Hire A Developer
Questions
function validatePhone(inputtxt) {_x000D_ var phoneno = /^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/;_x000D_ return phoneno.test(inputtxt)_x000D_ }