0
Two things.
One must add up the 3 values, but is returning Nan.
$('#valor').blur(function(){
var valor = $("input[name=valor]").val();
var descontos = $("input[name=descontos]").val();
var juros = $("input[name=juros]").val();
valor_cobrado = (parseFloat(valor) - parseFloat(descontos)) + parseFloat(juros);
$("#valor_cobrado").val(parseFloat(valor_cobrado));
Not always discounts or interest are filled in the form.
And another question is, how do I declare more fields in Blur?
It worked, but as I put more of a field calling the Blur?
– Suporte Escritoriomovel
In various ways... puts a class in the inputs and makes
$(".nome_da_classe").blur(...
– Sam