Unchecking Checkboxes

E

evanburen

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>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top