PDA

View Full Version : Dropdown Menus


JoeCullen
08-02-2005, 11:21 AM
Hey guys I am trying to create 3 dropdown menus. Depending on the information on the 1st box, it will change the information in the other 2. I will try to explain more..

Example:

Dropdown 1.

<select>
<option>option1</option>
<option>option2</option>
</select>


If option 1 is selected the next dropdown will display:

<select>
<option>Yes</option>
<option>No</option>
</select>


and if Yes is selected:

<select>
<option>Help Me</option>
<option>Please!</option>
</select>


Hopefully you can see what im trying to do and can point me in the right direction.. I know what I want but have absolutly no idea on how to code it :( Any help will be greatly apreciated!

Thanks in advance.

bushie
08-02-2005, 06:57 PM
I doubt this is html stuff Joe. Sounds just like "if else" statements to me and because you are changing content in the other boxes, you will have to use arrays as well. No doubt some clever programmer will pop up with something, but you might want to also have a look on a few Java sites to see if there are any scripts like this. I did say Java, not Javascript.

scoutt
08-02-2005, 07:49 PM
yup, either reload the page and use serverisde language or search for a javascript script that already does this for you.

here is one
http://www.snippetlibrary.com/viewhtml.php/5/19/498

but that one is geared for php. here is one for javascript

http://www.snippetlibrary.com/viewhtml.php/5/19/26

JoeCullen
08-03-2005, 07:38 AM
1st sorry for posting in the wrong place.

And thanks for the links scoutt its exactly what i was looking for :)

Joe