PDA

Click to See Complete Forum and Search --> : Hiding a select box


lenin
Nov 17th, 2000, 04:30 AM
Hi,
sorry for the excessive number of questions, but, is it possible to hide a select list box. I want to display details contained in a hidden select box based on the select of a user in a visible select list box.

Thanks in advance.

Lenin

monte96
Nov 17th, 2000, 08:58 AM
You can try:


[code]
<script language=javascript>
if (document.all) //IE
{
document.writeln("<div id=\"HiddenSelect\" style= \"visibility: hidden;\">");
else if (document.layers) //Netscape
{
document.writeln("<layer id=\"HiddenSelect\" z-index=\"100\" visibility=\"hide\">");
}
</script>
<SELECT>
blah blah
</SELECT>
<script language="JavaScript">
if (document.all) //IE
{
document.writeln("</div>");
}
else if (document.layers) //Netscape
{
document.writeln("</layer>");
}
</script>