I am using the following javascript to show or hide a table when the user clicks on a check box.
if (document.post.C3.checked)
{
document.getElementById("table1"
.style.visibility = "visible";
}
else
{
document.getElementById("table1"
.style.visibility = "hidden";
}
However, there are further tables after the show/Hide section, if I hide the table, there is a gap to my next table. Is there another property apart from hidden which will prevent this?
if (document.post.C3.checked)
{
document.getElementById("table1"
}
else
{
document.getElementById("table1"
}
However, there are further tables after the show/Hide section, if I hide the table, there is a gap to my next table. Is there another property apart from hidden which will prevent this?