I\'m trying to remove the comma from a number.
var thisbill_str = \"\";
thisbill = $(\'#linebill_\' + z).val();
if (isNaN(thisbill) ) { thisbill = 0.00; }
thi
It is most likely caused by thisbill_str being something other than a String. Maybe you have some other code somewhere that automatically converts thisbill_str to a Number?
You can convert back to a string using String(thisbill_str).
The complete code would be:
thisbill = String(thisbill_str).replace(",", "")