NaN value always returned from javascript
<pre><code>  var s = parseFloat(txtTotal.value, 10);
if (isNaN(s) || txtTotal.value == 0) {
    fncAlert("Please enter amount greater than 0");
    return false;
} 
</code></pre>

<p>The above code is always RETURNING S AS NaN. Any Help ?</p>