Hello, I have textboxes and I want to add the inputted values, however, some of the textbox(es) have null values and it gives me a "NaN". what should i do? thank you :) this is my code.
sep = parseFloat(document.getElementById('txtSep').value);
oct = parseFloat(document.getElementById('txtOct').value);
nov = parseFloat(document.getElementById('txtNov').value);
dec = parseFloat(document.getElementById('txtDec').value);
amt = parseFloat(document.getElementById('txtAmt').value);
bal = sep + oct + nov + dec;
document.getElementById('txtBal').value = bal;