Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if value is number

if(isNaN(num1))
OR:
if(typeof num1 == 'number'){
    document.write(num1 + " is a number <br/>");
 }else{
    document.write(num1 + " is not a number <br/>");
 }
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #number
ADD COMMENT
Topic
Name
9+2 =