This link shows how I tried to add two text box values but the addition of the value is wrongly calculated.
This my javascript code:
$("#amount").on("input", function ()
{
const originalDebit = $('#debit').val();
const amount = $('#amount').val();
const tot = parseFloat(originalDebit) + parseFloat(amount);
$('#debit').val(tot);
});
amountwas becomingNaN.