numeric and float validation not success
<p>i have a function to validate (accept only integer and float)</p>

<pre><code>function isNumeric(prodFilterValue)
{
    if((parseFloat(prodFilterValue) == parseInt(prodFilterValue)) &amp;&amp; !isNaN(prodFilterValue))
    {
        alert('numeric');       
        alert('hahahahhahaha');
        $("#valuetxt1").css('background-color', 'white');           

    }
    else
    {
        alert('HIIIIIIIIIII');
        $("#valuetxt1").css('background-color', 'grey');
    }

    return prodFilterValue;
}
</code></pre>

<p>the problem now is.. 
when validate 0.1 it will say it is not numeric..
suppose to be it is numeric..
when i put another condition </p>

<pre><code>if((parseFloat(prodFilterValue) == parseInt(prodFilterValue)) &amp;&amp; !isNaN(prodFilterValue) || (prodFilterValue % 1 !=0))
</code></pre>

<p>it will validate 1A as numeric</p>
