After  omitting $ from input gettting NaN in javascript asp.net
<p>In javascript , I have given like this,( edited adding Pasman response )</p>

<pre><code>      var y= document.getElementById('&lt;%= DataItemValue4.ClientID%&gt;').firstChild.nodeValue.replace('$', '');
    alert(Number(y));
y = y *48;
</code></pre>

<p>the value I am reading here is integer type amount with $, ex: $200, $10 etc.,
 and after  omitting <code>$</code> symbol, i get ex: <code>200, 10</code>. Now before i do arithmetic operations on y, alert shows me value as NaN,even if i don't write Number() also i am getting same problem. how to get numerical y and able to perform arithmetic  operation on it.
Can you guys help me out, </p>

<p>thanks a ton.michaeld</p>
