I have this simple check but for some reason javascript is not seeing the var as a number even when it is a number. This is the code:
if(isNaN(usagePos1)){
Process(usagePos1);
} else {
alert(usagePos1+" is not a numeric value! Please enter a numeric value!");
return false;
}
usagePos1 is actually passed as a parameter from a split()
Any ideas?