I am using isNaN to evaluate input in text box my function is like this
function IsNumeric(n) {
return !isNaN(n);
}
it's working fine with numeric but not on negative values nor decimal values like 1.2,
but I will not accept negative or decimal values like 1.2
how can I do that?
Thanks