Can someone please tell me why this code isn't working? I'm fiddling around with designing a site and trying to get my JS bearings down. I'm wondering why the second option isn't making the drop down list disappear. Thanks in advance!
<html>
<head>
</head>
<script language="JavaScript">
function fncShow()
{
document.getElementById('box').style.visibility = 'visible';
}
function fncHide()
{
document.getElementById('box').style.visibility = 'hidden';
}
</script>
<body>
<select name="box">
<option selected>Choose one</option>
<option value="first" onclick="JavaScript:fncShow();">first option</option>
<option value="second" onclick="JavaScript:fncHide();">second option</option>
</select>
</body>
</html>