1
I have three fields in a form. Putting the value in one, when leaving this field, lavascript should do the calculation and popular the other two each with a result:
EX:
Campo 1: Entro com o valor 10
Ao sair do campo 1, deve fazer
Campo 2 = Campo1 * 10 / 100
Campo 3 = Campo1 * 20 / 100
Has as?
OK. Solved. Obg.
– Marcos Birro
$(this).value;
should be$(this).val()
and would be better to convert to type Number.– Sergio