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 being able to calculate when it is in the house of thousands
var $valor = $('#Valor'),
$quantidade = $('#Quantidade'),
resultado = 0;
resultado = (parseFloat($valor.replace(",", ".")) * parseInt($quantidade));
$('#Total').val(result.toFixed(2));