Alright... I'm completely lost... I don't know what I'm doing. I have a select list, and depending on which option is selected, a different second select list will be "displayed" on the site. Here's what I have so far, and it doesn't do anything.
in header:
<script language="JavaScript" type="text/javascript">
change(select) {
document.sub1.style.visibility='hidden';
document.sub2.style.visibility='hidden';
document.select.style.visibility='visible';
}
</script>
body (first select):
<select name="profile" size="1">
<option value="" selected>Select a Profile</option>
<option value="1" onClick="change(sub1);">Community Profile</option>
<option value="2" onClick="change(sub2);">Investment Profile</option>
</select>
body (first of the second set):
<span id="sub1" style="visibility:hidden">
<select name="sub" size="1">
<option value="" selected>Select a Section</option>
<option value="1">Summerside within PEI</option>
<option value="2">Economic Indicators</option>
<option value="3">Site Selection</option>
</select>
</span>
any help will be greatly appreciated.
in header:
<script language="JavaScript" type="text/javascript">
change(select) {
document.sub1.style.visibility='hidden';
document.sub2.style.visibility='hidden';
document.select.style.visibility='visible';
}
</script>
body (first select):
<select name="profile" size="1">
<option value="" selected>Select a Profile</option>
<option value="1" onClick="change(sub1);">Community Profile</option>
<option value="2" onClick="change(sub2);">Investment Profile</option>
</select>
body (first of the second set):
<span id="sub1" style="visibility:hidden">
<select name="sub" size="1">
<option value="" selected>Select a Section</option>
<option value="1">Summerside within PEI</option>
<option value="2">Economic Indicators</option>
<option value="3">Site Selection</option>
</select>
</span>
any help will be greatly appreciated.