please help!!
in the code below, if the field is empty the alert message will appear but it completly ignores the isNumeric part. when a character is entered, no alert is shown and it continue to next page.
if ((document.formname.exp.value == ""
|| (!isNumeric(document.formname.exp.value)))
{
alert("Please enter a valid card expiry date"
;
document.formname.exp.focus();
return false
}
Any response is greatly appreciated!!!
in the code below, if the field is empty the alert message will appear but it completly ignores the isNumeric part. when a character is entered, no alert is shown and it continue to next page.
if ((document.formname.exp.value == ""
{
alert("Please enter a valid card expiry date"
document.formname.exp.focus();
return false
}
Any response is greatly appreciated!!!