Hi
I am trying to calculate a sum from 3 fileds:
the code is:
$('warningnotice___balance_outstanding').value = parseInt($('warningnotice___debt_value').value) -
parseInt($('warningnotice___payment_1').value));
I have tried this as a javascript on all 3 fields and also on each field only.
I have the default value of the balance_outstanding and payment_1 fields set to 0
the debt_value filed is populated from the dbase table.
I keep getting the following error.
missing ; before statement
Any Ideas
I am trying to calculate a sum from 3 fileds:
the code is:
$('warningnotice___balance_outstanding').value = parseInt($('warningnotice___debt_value').value) -
parseInt($('warningnotice___payment_1').value));
I have tried this as a javascript on all 3 fields and also on each field only.
I have the default value of the balance_outstanding and payment_1 fields set to 0
the debt_value filed is populated from the dbase table.
I keep getting the following error.
missing ; before statement
Any Ideas