HI

\\ recently started using html. here i have sections of work that i want hidden
\\ problem is that I can't figure a way to get the option and then show or hide stuff.

Again, I am starting out, so basic help please.


<script language="JavaScript" type="text/javascript">

function Display()
{
alert("you changed stuff");
var sel=0;
var sel = document.getElementById('Entry');

if (sel.options[sel.selectedIndex].value == "Day1")
{
alert("option 1");
document.getElementById("Day1").style.display="block";
document.getElementById("Day2").style.display="none";
}

else if(sel.options[sel.selectedIndex].value == "Day2")
{
alert("option2");
document.getElementById("Day1").style.display="none";
document.getElementById("Day2").style.display="block";


}




}

</script>


<select id="Entry" onchange="Display()" >
<option>--none--</option>
<option>Day1</option>
<option>Day2</option>

</select>

<div id="Day1" style="display: none;"> <br>Day1 </div>

<div id="Day2" style="display: none;"> <br>Day2</div>