tobeyt23 Posted September 8, 2006 Share Posted September 8, 2006 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!!! Link to comment https://forums.phpfreaks.com/topic/20121-solved-hide-a-dropdown-list/ Share on other sites More sharing options...
paul2463 Posted September 8, 2006 Share Posted September 8, 2006 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 TRUEthen you could define CHECKBOX "SELECTED" == TRUE - LIST "VISIBLE" == TRUE and vice versaas I said its been ages and if I am wrong I am sorry Link to comment https://forums.phpfreaks.com/topic/20121-solved-hide-a-dropdown-list/#findComment-88387 Share on other sites More sharing options...
radalin Posted September 9, 2006 Share Posted September 9, 2006 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. Link to comment https://forums.phpfreaks.com/topic/20121-solved-hide-a-dropdown-list/#findComment-88771 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.