Jump to content

Archived

This topic is now archived and is closed to further replies.

tobeyt23

[SOLVED] Hide a dropdown list

Recommended Posts

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!!!

Share this post


Link to post
Share on other sites
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

Share this post


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

it should work.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.