function validateFor9DigitNumber() { var txt = document.getElementById('<%= txt9Digit.ClientId %>'); var textValue = parseInt(txt.value); var regSSN1 = new RegExp("^\d{9}$"); if (isNaN(textValue)){ alert("Not a Number"); } else { alert("A Number"); alert(regSSN1.test(textValue)); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)