What kind of validation. For it to be numeric only ?
Positive numeric only, or can it be negative too (like -20)
If it's strictly numeric, then isNan() is your friend.
Code:
var value=10;
var result=null;
//isNan() test if the parameter is NOT a number. So testing that a number is NOT not a number does the trick.
if(!isNan(value)){
result=true;
}
else{
result=false;
}
reference:
http://docs.sun.com/source/816-6408-...ev.htm#1064024