Well, long story short. I'm looking for a way to sum numbers with comma for decimals and thousand seperator.
Currently, I'm trying to format the number with
sumamount += parseFloat(this.value.replace(/,/g,''));
it sill not working correctly.
Is there another way then removing the dot, replacing , with . and in the end reversing the change again? Thank you very much!
so, this is working, but... not really pretty nor performant, is it?
sumamount += parseFloat(this.value.replace('.', '').replace(',', '.'));