I'm trying to test if a value is a number.
I thought I could do this:
var test='not_a_num ber';
var test2='4.00';
num_test=parseF loat(test);
if(num_test == 'NaN'){alert('t hat was not a number')}
But that doesn't work. (at least not in NS)
Maybe a regex?
Jeff
I thought I could do this:
var test='not_a_num ber';
var test2='4.00';
num_test=parseF loat(test);
if(num_test == 'NaN'){alert('t hat was not a number')}
But that doesn't work. (at least not in NS)
Maybe a regex?
Jeff
Comment