i would appreciate any help.
in the code below, i am verifying if the user entered in a credit card number in the field.
if (document.formname.cardNum.value == ""
{
// tell client that you need the name
alert("Please enter a valid card number"
// send the cursor to the fullname field
document.formname.cardNum.focus()
// field is empty, so return false to abort the form
// submission
// the client is returned to the form
return false
}
i am trying to get it to check and see if this entry was a number using this statement
(Not(IsNumeric(document.formname.cardNum.value)))
why is it not possible for me to join these 2 conditions together like
if ((document.formname.cardNum.value == ""
or Not(IsNumeric(document.formname.cardNum.value))))
any suggestions greatly appreciated!!!
in the code below, i am verifying if the user entered in a credit card number in the field.
if (document.formname.cardNum.value == ""
{
// tell client that you need the name
alert("Please enter a valid card number"
// send the cursor to the fullname field
document.formname.cardNum.focus()
// field is empty, so return false to abort the form
// submission
// the client is returned to the form
return false
}
i am trying to get it to check and see if this entry was a number using this statement
(Not(IsNumeric(document.formname.cardNum.value)))
why is it not possible for me to join these 2 conditions together like
if ((document.formname.cardNum.value == ""
any suggestions greatly appreciated!!!