jsun9
Jan 13th, 2003, 09:27 AM
Is there another way to express the line: ('sTOC'+number).style.display = "none"; ??? i keep getting an error: 'style' is null or not an object
function figEnable(choice, number)
{
if(choice == "No")
{
('sTOC'+number).style.display = "none";
("sQty"+number).style.display = "none";
("sRate"+number).style.display = "none";
("scalcTotalCost"+number).style.display = "none";
}
else
{
('sTOC'+number).style.display = "";
("sQty"+number).style.display = "";
("sRate"+number).style.display = "";
("scalcTotalCost"+number).style.display = "";
}
}
function figEnable(choice, number)
{
if(choice == "No")
{
('sTOC'+number).style.display = "none";
("sQty"+number).style.display = "none";
("sRate"+number).style.display = "none";
("scalcTotalCost"+number).style.display = "none";
}
else
{
('sTOC'+number).style.display = "";
("sQty"+number).style.display = "";
("sRate"+number).style.display = "";
("scalcTotalCost"+number).style.display = "";
}
}