0
I need a jquery script to do the following:
TOTAL = Fine + Interest - Discount.
calculating even if one of the 3 inputs is not completed.
I found some examples on the internet, but everyone needs an action, a function or a button to price, but it has to be in real time.
I tried that but I didn’t succeed...
$(document).ready( function() {
var multa = $('#multaSoValor').val();
var juros = $('#jurosSovalor').val();
var desconto = $('#descontoSoValor').val();
var totalValorAdicionalDX = multa + juros - desconto;
$('#totalValorAdicional').val('totalValorAdicionalDX');
});
What do you mean "real time"? When typed?
– BrTkCa
that, "in real time" > when typed in any of the fields...
– Gustavo Samuel Marcolin
however has the following, these inputs fine, value, discount receive a value of another js but when running in html value becomes empty...
– Gustavo Samuel Marcolin