i have this function to calculate the sum of 3 inputs :
function calculateTotal() {
var result = fd.field('_x002D_ESO').value() + fd.field('Artdesk').value() + fd.field('OtherDesign').value();
// put the result somewhere into your form
document.getElementsByClassName("myOutput")[0].innerHTML = "Le budget total est : " + result;
}
fd.field('_x002D_ESO').change(calculateTotal);
fd.field('Artdesk').change(calculateTotal);
fd.field('OtherDesign').change(calculateTotal);
calculateTotal();
});
example . if i put 1 in the first field and 2 in the second and 3 in the third field , i dont get the sum, what i get is 123 any solution?