if(document.getElementById('txtMobileNo').value !="") { var intMobileNo =(document.getElementById('txtMobileNo').value) var RegExp=/^[0-9]\d*$/; if (!RegExp.test(intMobileNo)) { alert("Please Enter Numeric Value for MobileNo"); document.getElementById('txtMobileNo').value=""; document.forms[0].txtMobileNo.focus(); return false; } |
4/10/2013
Phone Validation using Javascript
Subscribe to:
Post Comments
(
Atom
)
No comments :
Post a Comment