I found [this][1], rather difficult, javascript example online and I\'ve implemented it with success in my website.
However, I would like to get the result of, in th
$("#value1, #value2").on('focusout', function() { var value2 = parseInt($("#value2").val()) > 0 ? parseInt($("#value2").val()) : 0; var value1 = parseInt($("#value1").val()) > 0 ? parseInt($("#value1").val()) : 0 var sumOfValues = value1 + value2; console.log('Your sum is ' + sumOfValues); });