0

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>
1
Contributor
1
Reply
3
Views
6 Years
Discussion Span
Last Post by genzoman
0

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.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.