I need a jquery script to do the following:
TOTAL = Fine + Interest - Discount.
that computes even if one of the 3 inputs is not filled.
I found some examples on the internet, but everyone needs an action, a function or a button to press, but it has to be in real time. I tried this but I did not succeed ...
$(document).ready( function() {
var multa = $('#multaSoValor').val();
var juros = $('#jurosSovalor').val();
var desconto = $('#descontoSoValor').val();
var totalValorAdicionalDX = multa + juros - desconto;
$('#totalValorAdicional').val('totalValorAdicionalDX');
});