I had a problem in validating my asp page..the field HomeTelno is not a
required field..but it always ask for a phone number.
How can i validate the field that the user had inputed numbers not
letters on it if the user has a telephone #.
How can i bypass the validation without asking for a telephone number
if the user has no tel number.
here is the code:
if (parseInt(form1.HomeTelno.value) != form1.HomeTelno.value) {
alert('Please enter a phone number, numbers only');
form1.HomeTelno.focus();
form1.HomeTelno.select();
return (false);
}
Pls help!!!! thanks!
--
diong
------------------------------------------------------------------------
Posted via
http://www.codecomments.com
------------------------------------------------------------------------