Sent by Jason Hummel on 30 April 2002 16:04
Hey cats,
I'm trying to get different divs to appear and disappear by selecting
different options from a dropdown menu.
Right now I'm using this in the dropdown code:
<select name="contacttype" onchange="changecontacttype();">
and then passing through the value of the dropdown into a javascript
function that switches divs on and off with this code in the
changecontacttype function:
document.all.DIVNAME.style.display = "block";
document.all.DIVNAME.style.display = "none";
(replace DIVNAME with the name of the div that is to be affected)
This works great in IE 5 for OSX and OS9, and IE 6 in windows, but I
can't get it to work in mozilla. Is there a better way to do this that
is more cross platform?
Thnx,
Jason Hummel