show/hide a layer with a combo box :/

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

show/hide a layer with a combo box :/

Post by qads »

hi,

Code: Select all

<form name="form1" method="post" action="">
  <select name="age" id="age">
<option value=""><--Select One--></option>
    <option value="10">10</option>
    <option value="20">20</option>
    <option value="30">30</option>
    <option value="Unspecified">Unspecified</option>
  </select>
</form<layer name="unsp" width="100%" visibility="hide">Some text here.</layer>
how would i show the above layer when a user selects "Unspecified" as a option from the drop down menu? at start, the layer needs to be hidden so it only shows up when "Unspecified" is selected.

i know some javascript but i can't do this :/....any help would be great!

thank you
qads
DevNet Resident
Posts: 1199
Joined: Tue Apr 23, 2002 10:02 am
Location: Brisbane

Post by qads »

thanks anyways, i found a way to do it :D.
Post Reply