1
I have 2 inputs, quantity and value.
The input value is using the plugin Jquery Maskmoney
it is configured as follows:
$('.money').maskMoney(
{
allowNegative: true,
thousands: '.',
decimal: ',',
affixesStay: false
});
What makes your formatting look like this : 1,000.00
But my calculation is not able to calculate when it is in the thousands
var $valor = $('#Valor'),
$quantidade = $('#Quantidade'),
resultado = 0;
resultado = (parseFloat($valor.replace(",", ".")) * parseInt($quantidade));
$('#Total').val(result.toFixed(2));