I have 2 different links to the same function – one is just text and
the other is a checkbox. I want to keep the checkboxes in synch with
the rest of the form. For example, if a user clicks the ‘Hide Company
Board’ text link below, I also want chkCompanyBoard within the
frmCheckboxes form to to be unchecked.
Thanks.
function hideLayer(whichLayer)
{
document.getElementById(whichLayer).style.display = ‘none’;
var strshowhide=0;
frmPanelStatus.location.href=”panelstatus.asp?showhide=” + strshowhide
+ “&whichLayer=” + whichLayer;
}
<a href=”javascript:hideLayer(‘CompanyBoard’);”>Hide Company Board</a>
<form name=”frmCheckboxes” action=”panelstatus.asp” method=”post”>
<input type=”checkbox” name =”chkCompanyBoard”
onClick=”hideLayer(‘CompanyBoard’,this);”>Company and Board Description
</form>