[Javascript] can I build a select box and hide it

Dan Costea costea.dan at ssi-schaefer.ro
Wed Jun 12 14:49:59 CDT 2002


  <script type="text/javascript">
function alertCombo ()
{
 with (document.all['lala'])
   alert (options[selectedIndex].text);
}
  </script>


   <select id="lala">
    <option>one</option>
    <option>two</option>
    <option>three</option>
    <option>four</option>
   </select>
   <br/><br/><br/>
   <button onclick="document.all['lala'].style.display='none'">hide
combo</button>
   <br/>
   <button onclick="alertCombo ();">alert bombo value</button>


Dan.

----- Original Message -----
From: "Scott.Wiseman" <swiseman at remax-cahi.com>
To: <javascript at LaTech.edu>
Sent: Tuesday, June 11, 2002 4:24 PM
Subject: [Javascript] can I build a select box and hide it


> is there a way to hide it and access it
> _______________________________________________
> Javascript mailing list
> Javascript at LaTech.edu
> https://lists.LaTech.edu/mailman/listinfo/javascript




More information about the Javascript mailing list