I am using a custom script that prints the value of the currency with comma, but it is not inserting a point in the case of thousands.
Currently it prints like this: 1000,00
I need it to print this way: 1,000,00
Here is part of the code responsible for printing:
pai.find('.valor_original').html(escolha != 1 ? '<strong><span class="strike">R$ '+preco.toFixed(2).replace(".",",")+'</span></strong>' : '<strong>Altere a</strong>');
The value it receives is dotted: 1000.00 , so it is converting to a comma. How do I change the replace
in this case?
I need to know how to modify this specific script.