I have written some Javacript code that calculates the lineal footage of multiple values that are typed in by the user. Here is the Javascript code...
var totalLinealFootage = 0;
for (var i = 0; i <= 24; ++i)
{
var p = +document.getElementById('pf' + i).value;
var f = +document.getElementById('ff' + i).value;
var i = (+document.getElementById('if' + i).value)/12;
if (!isNaN(p) && !isNaN(f) && !isNaN(i))
{
totalLinealFootage += (f+i)*p;
}
}
As of now no matter what values I place in the inputs totalLinealFootage has no value?