In javascript, I have given like this,( edited adding Pasman response )
var y= document.getElementById('<%= DataItemValue4.ClientID%>').firstChild.nodeValue.replace('$', '');
alert(Number(y));
y = y *48;
the value I am reading here is integer type amount with $, ex: $200, $10 etc.,
and after omitting $ symbol, i get ex: 200, 10. 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.
You can replace the $ sign like this: