florida
04-15-2003, 08:29 PM
Trying to get focus to work for this number validation. This gets focus to work but corrupts the validation. any suggestions?
var nbr = Number(theform.month.value);
if (isNaN(nbr.value))
{
alert("Not a number.");
theform.month.focus();
}
var nbr = Number(theform.month.value);
if (isNaN(nbr.value))
{
alert("Not a number.");
theform.month.focus();
}