Thank you so much for that. I'm still stuck on the checkbox switch. I tested it in Mozilla, but it still doesn't work. I'm am so stuck on this. I really need this thing to work in Internet Explorer.
Here is the code agian...
Quote:
<script language="javascript">
function inspectbox() {
if (document.forms.addshow.morelocations.checked) {
document.forms.addshow.Location2.style.visibility = 'visible';
}
if (document.forms.addshow.morelocations.checked == false) {
document.forms.addshow.Location2.style.visibility = 'hidden';
}
}
</script>
<form name='addshow'>
<input name="morelocations" type="checkbox" onClick="inspectbox()">More...
<select name="Location2" style1" style="visibility:hidden">
<option>Option 1</option>
<option>Option 2</option>
<option>Option 3</option>
</select>
</form>
|
I messed around with it for a while and I may have figured out the problem....
I removed the...
Quote:
|
document.forms.addshow.Location2.style.visibility = 'visible';
|
and the...
Quote:
|
document.forms.addshow.Location2.style.visibility = 'hidden';
|
after the IF statements...
I changed them to alerts so that it would alert me if it was checked or not checked and they worked just great...
I left in the....
Quote:
|
style="visibility:hidden">
|
On the dropdown box....
When you clicked anywere on the window, the box became visible and stayed that way. The checkbox with the alerts worked great.
I then put the original lines to swith the drop down to visible and hidden back in the javascript up top. and left the style code in the dropdown box out. Nothing happend when I clicked the checkbox.
I put the style part back in the dropdown and changed the tag to visible instead of hidden and the check box still didn't do anything.
I don't know if this helps at all because if just confused me even more.
Thank you so much for your help, seriously.
P.S. - This was all tested in Internet Explorer 6.0