- Joined
- Jul 24, 2009
- Messages
- 476 (0.09/day)
System Name | Corporate Commando |
---|---|
Processor | Intel i7 3820 @ 4.5ghz |
Motherboard | Asrock x79 extreme 6gb |
Cooling | corsair h100 |
Memory | 8 gig corsair 1866 ddr3 ram |
Video Card(s) | 3 x EVGA GTX 680 |
Storage | 2x samsung F3 1tb drives in RAID 0, 512gb samsung ssd |
Display(s) | 3 x Asus 27" monitor @ 5760 x 1080 |
Case | Corsair C70 |
Power Supply | Coolermaster 1200watt gold |
I am creating a web based form in html. Basically when the form loads the javascript has two drop down menus that are hidden. However, when the user checks a checkbox they become visible. The problem I am running into is that one of the checkboxes work perfect but the other check box doesn't. Below is snipets of the code.
script:
email check box
email drop down
infor check box
infor drop down
Like I said the email check box works perfectly. However, when I click the infor check box it does not make the infor drop down menu visible.
script:
Code:
<script type="text/javascript">
function hiddenload(){
{
document.accountreqform.emailDrop.style.visibility="hidden";
}
{
document.accountreqform.inforDrop.style.visibility="hidden";
}
}
function inspectemailbox() {
if (document.accountreqform.EmailCheckBox.checked) {
document.accountreqform.emailDrop.style.visibility = 'visible';
}
if (document.accountreqform.EmailCheckBox.checked == false) {
document.accountreqform.emailDrop.style.visibility = 'hidden';
}
function inspectinforbox() {
if (document.accountreqform.InforCheckBox.checked) {
document.accountreqform.inforDrop.style.visibility = 'visible';
}
if (document.accountreqform.InforCheckBox.checked == false) {
document.accountreqform.inforDrop.style.visibility = 'hidden';
}
}
}
</script>
email check box
Code:
<input id="EmailCheckBox" name="EmailCheckBox[]" type="checkbox" value="eMail" onClick="inspectemailbox()">
email drop down
Code:
<select id="emailDrop" name="emailDrop">
removed due to info
</select>
infor check box
Code:
<input id="InforCheckBox" name="InforCheckBox[]" type="checkbox" value="Infor EAM Login" onClick="inspectinforbox()">
infor drop down
Code:
<select id="inforDrop" name="inforDrop">
removed due to info
</select>
Like I said the email check box works perfectly. However, when I click the infor check box it does not make the infor drop down menu visible.