for (loopIndex1 = 1; loopIndex1 < rowCount; loopIndex1++) { if (loopIndex1 < 8) saleplanTextIndex = "ctl00_Body_PlannerDetailsGV_ctl0" + parseInt(loopIndex1 + 2) + "_" + loopIndex1 + "salesplanTextID" + eleIndex; else saleplanTextIndex = "ctl00_Body_PlannerDetailsGV_ctl" + parseInt(loopIndex1 + 2) + "_" + loopIndex1 + "salesplanTextID" + eleIndex; //document.getElementById(saleplanTextIndex).value if (document.getElementById(saleplanTextIndex).value == "") { document.getElementById(saleplanTextIndex).value = 0; } colSum = colSum + parseInt(document.getElementById(saleplanTextIndex).value); }
document.getElementById
saleplanTextIndex
id
value
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)