Results 1 to 2 of 2

Thread: Hiding a select box

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 1999
    Location
    Belfast
    Posts
    254
    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

  2. #2
    Frenzied Member monte96's Avatar
    Join Date
    Sep 2000
    Location
    Somewhere in AZ
    Posts
    1,379
    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>
    oOOo--oOOo
    __/\/\onte96
    oOOo--oOOo
    Senior Programmer/Analyst
    MCP
    monte96_@hotmail.com
    monte96@vbgarage.com


    Your results may vary.. some restrictions may apply.. pricing and participation may vary.. not available in all states.. professional driver closed course..quantities limited..

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width