Jump to content


[SOLVED] Hide a dropdown list

  • Please log in to reply
2 replies to this topic

#1 tobeyt23

  • Members
  • PipPipPip
  • Advanced Member
  • 259 posts
  • LocationSalisbury

Posted 08 September 2006 - 02:00 PM

I would like to have drop-down list hiding until someone checks a checkbox. What is the best way to achieve this, any and all suggestions are appreciated!!!

#2 paul2463

  • Members
  • PipPipPip
  • Advanced Member
  • 955 posts
  • LocationUK

Posted 08 September 2006 - 02:03 PM

Its been a while since I did any Javascript coding but from what I can remeber, can you not set the VISIBLE property of the table to FALSE until a button is clicked changing its VISIBLE property to TRUE

then you could define CHECKBOX  "SELECTED" == TRUE - LIST "VISIBLE" == TRUE and vice versa

as I said its been ages and if I am wrong I am sorry
you cannot affect the past but you can ruin a perfectly good present by worrying about the future

The <A HREF="http://www.php.net/d...php">MANUAL</A> is actually a useful resource

#3 radalin

  • Members
  • PipPipPip
  • Advanced Member
  • 179 posts

Posted 09 September 2006 - 12:18 AM

well put the list in a div like:
<div style="visibility:hidden; display:none;" id="iAmHidden">
if someone check the checkbox then do something like:
<input type="checkbox" name="visibler" onChange="document.getElementById('iAmHidden').style='visibility:visible;';" />

it should work.
Roy Simkes
Yet Another Parkyeri Developer

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users