How to optimize the code?
My code:
<div class = "
Dollarmax
">
$99,999,999
</div>
var dollar= $('.Dollarmax').html();
dollar=getdollar(dollar);
function getdollar(value){
value = value.replace(/\$|\,/g, '');
value = value.replace('$','');
value = value.replace('"','');
return value;
}
How to optimize(dollar variable code) the above code in single line?