Good morning, I have this code to update the total.
I need to change the. (dot) by, (comma). How do I?
Code:
<script type="text/javascript">
$(document).ready(function() {
$("#evento_quantidade").change(function() {
var qtd = $(this).val();
var valor = $("#precoSoma").val();
var calculo = qtd * valor;
var n = calculo.toFixed(2);
$("#total_compra").val(n);
});
});
</script>