IMPORTANT NOTICE: You must join this group to start posting in the forum.
There are lots of methods available for testing whether a value is numeric or whole number. Following method also doing the same.
if (mynum != parseInt(mynum))
alert(mynum + ‘ is not a whole number’);
if (mynum == parseFloat(mynum))
alert(mynum + ‘ is numeric’);