# Show/Hide Layers from a drop down box

**URL:** <https://forum.kirupa.com/t/show-hide-layers-from-a-drop-down-box/194036>\
**Category:** web dev\
**Created:** [July 20, 2006, 2:22am UTC](https://forum.kirupa.com/t/show-hide-layers-from-a-drop-down-box/194036 "2006-07-20T02:22:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leisuresuitlissy](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/leisuresuitlissy/32/2109_2.png) [@leisuresuitlissy](https://forum.kirupa.com/u/leisuresuitlissy)\
**Post date:** [July 20, 2006, 2:22am UTC](https://forum.kirupa.com/t/show-hide-layers-from-a-drop-down-box/194036/1 "2006-07-20T02:22:22Z")

</div>

Dear people,

I need to show and hide several layers each time an item is selected. For example if my select box contains 2 items; “north” and “south”, when “north” is selected I want to show layers “mapnorth”, “dirnorth” and “optnorth” whilst hiding “mapsouth”, “dirsouth” and “optsouth” and vice-versa when “south” is selected.

Is this possible? If so, can someone tell me how to do it?

thanks  
m
