isNaN checks to see if a value is NOT a number. So [red]![/red]isNaN would be the inverse of that, checking to see if the value [red]IS[/red] a number.
Code:
var myvalue=567;
if(!isNaN(myvalue))
{
alert('It is a number');
}
----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.