[Solved] Why does a function that’s almost a copy of another fail to update output field?


This line is wrong in your script (in posubtotal)

if(document.getElementById("lt2").value = null){ // <-- == null
  polt2 = 0;
} 

I used firebug, and saw the hardcoded 568 in l2calc with a breakpoint, and then saw the value vanish. So I followed the code.

4

solved Why does a function that’s almost a copy of another fail to update output field?