I would very much prefer one that works with IE. My current code only allows for an element to become visible, but I would much prefer if it faded in. Thanks in advance, kids!

<html>

<head>
<title>title</title>

    <script language="JavaScript">
        function fncShow()
        {
           document.getElementById('box1').style.visibility = 'visible';
        	
        }
  
       function fncHide()
        {
            document.getElementById('box').style.visibility = 'hidden';
        	
        }
    </script>
     </head>
<body>
 <form>
    <select name="box" id="box">
    <option selected="firstchoice">Choose one:</option>
    <option value="first" id="box" onclick="JavaScript:fncShow();">first option</option>
    <option value="second" id="box" onclick="JavaScript:fncHide();">second option</option>
    </select></form>
<div style="visibility:hidden" id="box1">woot?</div>
</body>
</html>

I would very much prefer one that works with IE. My current code only allows for an element to become visible, but I would much prefer if it faded in. Thanks in advance, kids!

<html>

<head>
<title>title</title>

    <script language="JavaScript">
        function fncShow()
        {
           document.getElementById('box1').style.visibility = 'visible';
        	
        }
  
       function fncHide()
        {
            document.getElementById('box').style.visibility = 'hidden';
        	
        }
    </script>
     </head>
<body>
 <form>
    <select name="box" id="box">
    <option selected="firstchoice">Choose one:</option>
    <option value="first" id="box" onclick="JavaScript:fncShow();">first option</option>
    <option value="second" id="box" onclick="JavaScript:fncHide();">second option</option>
    </select></form>
<div style="visibility:hidden" id="box1">woot?</div>
</body>
</html>

edit: jquery is referenced, just not in this.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.